summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4ec53a7)
raw | patch | inline | side by side (parent: 4ec53a7)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 28 Aug 2009 13:38:08 +0000 (13:38 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 28 Aug 2009 13:38:08 +0000 (13:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14161 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/include/focus.js | patch | blob | history |
index e78e68fc38ee14e13cd947c0be11835b48dcea1f..aab47d898ce5fe904a819050b8c0a98975259cbd 100644 (file)
// document.defaultView allows access to the rendered size of elements and should be supported by modern browsers
if(document.defaultView) {
- var menu_height=parseInt(document.defaultView.getComputedStyle(document.getElementById("menucell"),"").getPropertyValue('height'));
-
- // Minimum height for divlist should be the bottom edge of the menu
- min_height= menu_height-197;
- suggested= min_height;
- if((inner_height-230)-suggested>0) {
- suggested= inner_height-230;
- }
+ var menu_height= 0;
+ if (document.getElementById("d_height")){
+ suggested= parseInt(document.getElementById("d_height").value);
+ } else {
+ menu_height=parseInt(document.defaultView.getComputedStyle(document.getElementById("menucell"),"").getPropertyValue('height'));
+ // Minimum height for divlist should be the bottom edge of the menu
+ min_height= menu_height-197;
+ suggested= min_height;
+ if((inner_height-230)-suggested>0) {
+ suggested= inner_height-230;
+ }
+ }
+
// IE uses other height specifications
} else if (browserType == "ie") {
suggested= document.all.menucell.offsetHeight;