From a5739a5114f79cb4c4c6770168f12687661680d7 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Thu, 31 Oct 2002 21:20:43 +0000 Subject: - automatic resize of all graphs depending on screen size (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@552 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/chart_diff.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'frontends/php/chart_diff.php') diff --git a/frontends/php/chart_diff.php b/frontends/php/chart_diff.php index a95bb904..6199e8a3 100644 --- a/frontends/php/chart_diff.php +++ b/frontends/php/chart_diff.php @@ -25,7 +25,15 @@ $from=$HTTP_GET_VARS["from"]; } - $sizeX=900; + if(isset($HTTP_GET_VARS["width"])) + { + $sizeX=$HTTP_GET_VARS["width"]; + } + else + { + $sizeX=200; + } + $sizeY=200; $shiftX=10; -- cgit