Code

Fixed scaling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Nov 2007 08:10:22 +0000 (08:10 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 21 Nov 2007 08:10:22 +0000 (08:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7836 594d385d-05f5-0310-b6e9-bd551577e9d8

html/include/focus.js

index 471bdd02aaeb1ba7dad71877cd6a0ea095760c83..83d8ac49d42b648ed9144fc0730e38d3ee053e20 100644 (file)
@@ -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)