From: hickert Date: Wed, 8 Aug 2007 09:58:07 +0000 (+0000) Subject: Adjusted automatic resize function to include footer size in height recalculations X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fdd3062c57ed8d24fcae293b23b44a30dfb3fac2;p=gosa.git 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 --- 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;