mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
contrib/Infopanel: minor bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk@7846 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
72bd715c33
commit
14d3d034e0
@ -372,7 +372,7 @@ sub btIP_itemPlot {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
($width,$height) = split(",", AttrVal($plotName[0],"plotsize","800,160"));
|
($width,$height) = split(",", AttrVal($plotName[0],"plotsize","0,0"));
|
||||||
($newWidth,$newHeight) = _btIP_imgRescale($width,$height,$scale);
|
($newWidth,$newHeight) = _btIP_imgRescale($width,$height,$scale);
|
||||||
$attr{$plotName[0]}{plotsize} = "$newWidth,$newHeight";
|
$attr{$plotName[0]}{plotsize} = "$newWidth,$newHeight";
|
||||||
|
|
||||||
@ -385,7 +385,8 @@ sub btIP_itemPlot {
|
|||||||
$FW_pos{off} = ($plotName[2]) ? $plotName[2] : undef;
|
$FW_pos{off} = ($plotName[2]) ? $plotName[2] : undef;
|
||||||
|
|
||||||
($mimetype, $svgdata) = SVG_showLog("unused");
|
($mimetype, $svgdata) = SVG_showLog("unused");
|
||||||
$attr{$plotName[0]}{plotsize} = "$width,$height";
|
$attr{$plotName[0]}{plotsize} = undef;
|
||||||
|
$attr{$plotName[0]}{plotsize} = "$width,$height" if($width || $height);
|
||||||
|
|
||||||
$svgdata =~ s/<\/svg>/<polyline opacity="0" points="0,0 $width,$height"\/><\/svg>/;
|
$svgdata =~ s/<\/svg>/<polyline opacity="0" points="0,0 $width,$height"\/><\/svg>/;
|
||||||
(undef,undef,undef,$svgdata) = _btIP_imgData($svgdata,1);
|
(undef,undef,undef,$svgdata) = _btIP_imgData($svgdata,1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user