diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-12-05 10:57:58 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-12-05 10:57:58 +0000 |
commit | 7d13ea434dba96e69195d74c338498f847e9fed3 (patch) | |
tree | 174bc17745807e3341b518d256ab5f3b8d355f0b /frontends/php/charts.php | |
parent | d13ea897eda76d08bac623bb1a6e965b712c8116 (diff) | |
download | zabbix-7d13ea434dba96e69195d74c338498f847e9fed3.tar.gz zabbix-7d13ea434dba96e69195d74c338498f847e9fed3.tar.xz zabbix-7d13ea434dba96e69195d74c338498f847e9fed3.zip |
- added changes for better support Konqueror Browser (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5133 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/charts.php')
-rw-r--r-- | frontends/php/charts.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/php/charts.php b/frontends/php/charts.php index bcd5bece..ee192410 100644 --- a/frontends/php/charts.php +++ b/frontends/php/charts.php @@ -380,7 +380,7 @@ include_once 'include/page_header.php'; var ZBX_G_WIDTH; if(window.innerWidth) ZBX_G_WIDTH=window.innerWidth; else ZBX_G_WIDTH=document.body.clientWidth; - + ZBX_G_WIDTH-='.($shiftXleft+$shiftXright+10).'; document.write(\'<img id="'.$dom_graph_id.'" src="chart6.php?graphid='.$_REQUEST['graphid'].url_param('stime'). '&period='.$effectiveperiod.'&width=\'+ZBX_G_WIDTH+\'" /><br /><br />\'); @@ -394,10 +394,10 @@ include_once 'include/page_header.php'; A_SBOX["'.$dom_graph_id.'"].shiftT = 17; A_SBOX["'.$dom_graph_id.'"].shiftL = '.$shiftXleft.'; - var ZBX_G_WIDTH; - if(window.innerWidth) ZBX_G_WIDTH=window.innerWidth; - else ZBX_G_WIDTH=document.body.clientWidth; - ZBX_G_WIDTH-='.($shiftXleft+$shiftXright+10).'; + var ZBX_G_WIDTH = get_bodywidth(); + ZBX_G_WIDTH-= parseInt('.($shiftXleft+$shiftXright).'+parseInt((SF)?27:27)); + //ZBX_G_WIDTH-= '.($shiftXleft+$shiftXright+27).'; + document.write(\'<img id="'.$dom_graph_id.'" src="chart2.php?graphid='.$_REQUEST['graphid'].url_param('stime'). '&period='.$effectiveperiod.'&width=\'+ZBX_G_WIDTH+\'" /><br /><br />\'); --> |