Code

Adjusted automatic resize function to include footer size in height recalculations
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Aug 2007 09:58:07 +0000 (09:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Aug 2007 09:58:07 +0000 (09:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6999 594d385d-05f5-0310-b6e9-bd551577e9d8

html/include/focus.js

index 710d741d5cdcca5f1af62b7427c0f32de471a5c4..183b3d918bab817faa273f90af3468b236e32199 100644 (file)
@@ -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;