From 4eaa6f48c3fbe8bee41cfc08f0a9907d602d3fcf Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 21 Nov 2007 08:10:22 +0000 Subject: [PATCH] Fixed scaling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7836 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/include/focus.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/html/include/focus.js b/html/include/focus.js index 471bdd02a..83d8ac49d 100644 --- a/html/include/focus.js +++ b/html/include/focus.js @@ -381,7 +381,7 @@ function adjust_width(e) // Resize the Header cells (only the relative-width ones) document.getElementById('t_scrollhead').style.width=div_width+"px"; } - } else if(document.defaultView && document.getElementById("t_scrolltable_onlywidth") && document.getElementById('d_scrolltable_onlywidth')) { + } else if(document.defaultView && document.getElementById("t_scrolltable_onlywidth")){ // Resize the div var div_width=parseInt(document.defaultView.getComputedStyle(document.getElementById("t_scrolltable_onlywidth"),"").getPropertyValue('width')); var width= parseInt(window.innerWidth); @@ -391,7 +391,9 @@ function adjust_width(e) // window has been upscaled if(div_width+diff>=600) { - document.getElementById('d_scrollbody_onlywidth').style.width=div_width+diff+"px"; + if(document.getElementById('d_scrollbody_onlywidth')){ + document.getElementById('d_scrollbody_onlywidth').style.width=div_width+diff+"px"; + } document.getElementById('t_scrollbody_onlywidth').style.width=(div_width-19)+diff+"px"; // Resize the Header cells (only the relative-width ones) @@ -401,7 +403,9 @@ function adjust_width(e) } else if (width < 930) { // Reset layout (set width to 600px) div_width=600; - document.getElementById('d_scrollbody_onlywidth').style.width=div_width+"px"; + if(document.getElementById('d_scrollbody_onlywidth')){ + document.getElementById('d_scrollbody_onlywidth').style.width=div_width+"px"; + } document.getElementById('t_scrollbody_onlywidth').style.width=(div_width-19)+"px"; // Resize the Header cells (only the relative-width ones) -- 2.30.2