Code

Adjusted automatic resize function to include footer size in height recalculations
[gosa.git] / 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;