From fdd3062c57ed8d24fcae293b23b44a30dfb3fac2 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 8 Aug 2007 09:58:07 +0000 Subject: [PATCH] Adjusted automatic resize function to include footer size in height recalculations git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6999 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/include/focus.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/html/include/focus.js b/html/include/focus.js index 710d741d5..183b3d918 100644 --- a/html/include/focus.js +++ b/html/include/focus.js @@ -263,6 +263,12 @@ function adjust_height(e) { suggested= inner_height-230; } } + + /* Reduce height if a list footer is set */ + if(document.getElementById("t_scrollfoot")){ + suggested = suggested -20; + } + document.getElementById("d_scrollbody").style.height=suggested+"px"; } return true; -- 2.30.2