From: cajus Date: Tue, 5 Jan 2010 09:47:43 +0000 (+0000) Subject: Added workaround for webkit / konqueror X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3c8e015bdd37915f5bfef7005bd5ede0ddbd005c;p=gosa.git Added workaround for webkit / konqueror git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15043 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/include/focus.js b/gosa-core/html/include/focus.js index 173c7ba17..8ffe8f20e 100644 --- a/gosa-core/html/include/focus.js +++ b/gosa-core/html/include/focus.js @@ -368,7 +368,12 @@ function adjust_height(e) { } if (!document.getElementById("list_workaround")) { - document.getElementById("d_scrollbody").style.height=suggested+20+"px"; + document.getElementById("d_scrollbody").style.height=suggested+"px"; + } else { + current_height= parseInt(document.defaultView.getComputedStyle(document.getElementById("t_nscrollbody"),"").getPropertyValue('height')); + if (current_height < menu_height) { + document.getElementById("d_scrollbody").style.height=suggested+20+"px"; + } } if (document.getElementById("t_nscrollbody")) { document.getElementById("t_nscrollbody").style.height=(suggested-22)+"px"; diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index aac1efd2e..f93313b53 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -423,13 +423,13 @@ class listing { // Close list $result.= ""; + $result.= $switch?"":""; $smarty= get_smarty(); $smarty->assign("usePrototype", "true"); $smarty->assign("FILTER", $this->filter->render()); $smarty->assign("SIZELIMIT", print_sizelimit_warning()); $smarty->assign("LIST", $result); - $smarty->assign("list_workaround", $switch?"":""); // Assign navigation elements $nav= $this->renderNavigation();