From 5ce1eb58ee50f4d4b0c477ae40ecc6b48791d2e8 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Fri, 25 Jul 2003 06:01:57 +0000 Subject: Fixes for screenedit.php (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@863 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/chart.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'frontends/php/chart.php') diff --git a/frontends/php/chart.php b/frontends/php/chart.php index 3b569e71..a9cf1467 100644 --- a/frontends/php/chart.php +++ b/frontends/php/chart.php @@ -71,7 +71,12 @@ function setWidth($width) { - $this->width=$width; + $this->sizeX=$width; + } + + function setHeight($height) + { + $this->sizeY=$height; } function setBorder($border) @@ -618,6 +623,10 @@ { $graph->setWidth($HTTP_GET_VARS["width"]); } + if(isset($HTTP_GET_VARS["height"])) + { + $graph->setHeight($HTTP_GET_VARS["height"]); + } if(isset($HTTP_GET_VARS["border"])) { $graph->setBorder(0); -- cgit