2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

contrib/InfoPanel: fixed plot resize

git-svn-id: https://svn.fhem.de/fhem/trunk@7831 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2015-02-02 10:14:01 +00:00
parent 90aa9aff41
commit bf403e0846

View File

@ -352,8 +352,8 @@ sub btIP_itemPlot {
}
}
($width,$height) = split(",", AttrVal($plotName[0],"plotsize","800,160"));
($width,$height) = _btIP_imgRescale($width,$height,$scale) unless $scale eq '1';
# ($width,$height) = split(",", AttrVal($plotName[0],"plotsize","800,160"));
# ($width,$height) = _btIP_imgRescale($width,$height,$scale) unless $scale eq '1';
if($inline eq "1") {
#
@ -369,10 +369,11 @@ sub btIP_itemPlot {
($mimetype, $svgdata) = SVG_showLog("unused");
$svgdata =~ s/<\/svg>/<polyline opacity="0" points="0,0 $width,$height"\/><\/svg>/;
# $svgdata =~ s/<svg/<svg width="$width" height="$height" /;
$output = "<image id=\"$id\" x=\"$x\" y=\"$y\" width=\"".$width."px\" height=\"".$height."px\" \n";
$output .= "xlink:href=\"data:$mimetype;base64,".encode_base64($svgdata)."\" />\n";
($width,$height,$mimetype,$svgdata) = _btIP_imgData($svgdata,$scale);
$output = "<!-- w: $width h: $height t: $mimetype-->\n";
$output .= "<image id=\"$id\" x=\"$x\" y=\"$y\" width=\"".$width."\" height=\"".$height."\" \n";
$output .= "xlink:href=\"$svgdata\" />\n";
} else {
#