From: hickert Date: Wed, 21 Nov 2007 06:42:32 +0000 (+0000) Subject: Don't not try to resize lists that can't be resized. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=45037b88d126d22d0fe9af9b4bd2205b81edce82;p=gosa.git Don't not try to resize lists that can't be resized. -> FAI package list git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7832 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/include/focus.js b/html/include/focus.js index a16220c57..471bdd02a 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")) { + } else if(document.defaultView && document.getElementById("t_scrolltable_onlywidth") && document.getElementById('d_scrolltable_onlywidth')) { // Resize the div var div_width=parseInt(document.defaultView.getComputedStyle(document.getElementById("t_scrolltable_onlywidth"),"").getPropertyValue('width')); var width= parseInt(window.innerWidth);