From e06d4ccad10ee499b3cb32892e5ad66c377330cf Mon Sep 17 00:00:00 2001 From: betateilchen Date: Mon, 2 Feb 2015 10:14:01 +0000 Subject: [PATCH] contrib/InfoPanel: fixed plot resize git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7831 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/InfoPanel/55_InfoPanel.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fhem/contrib/InfoPanel/55_InfoPanel.pm b/fhem/contrib/InfoPanel/55_InfoPanel.pm index 9110aa0c8..b86c20bd8 100644 --- a/fhem/contrib/InfoPanel/55_InfoPanel.pm +++ b/fhem/contrib/InfoPanel/55_InfoPanel.pm @@ -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>/<\/svg>/; -# $svgdata =~ s/\n"; + ($width,$height,$mimetype,$svgdata) = _btIP_imgData($svgdata,$scale); + $output = "\n"; + $output .= "\n"; } else { #