From: cajus Date: Tue, 4 May 2010 18:10:07 +0000 (+0000) Subject: Added workaround until this is fixed in webkit/opera X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6946bff92c2d5dd6d335d9f6a818407c751bbc20;p=gosa.git Added workaround until this is fixed in webkit/opera git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18059 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/include/gosa.js b/gosa-core/html/include/gosa.js index 25df0a08b..862975fef 100644 --- a/gosa-core/html/include/gosa.js +++ b/gosa-core/html/include/gosa.js @@ -251,21 +251,26 @@ function divGOsa_toggle(element) { function resizeHandler (e) { if (!e) e= window.event; - // This works with FF / IE9. If Apples resolves a bug in webkit, - // it works with Safari/Chrome, too. + // This works with FF / IE9. If Apples resolves a bug in webkit, + // it works with Safari/Chrome, too. if ($("d_scrollbody") && $("t_nscrollbody")) { - var contentHeight= document.viewport.getHeight() - 216; - if ($$('div.plugin-actions').length != 0) { - var height= 0; - $$('div.plugin-actions').each(function(s) { - height+= s.getHeight(); - }); - contentHeight-= height + 5; - } - - document.getElementById('d_scrollbody').style.height = contentHeight+23+'px'; - document.getElementById('t_nscrollbody').style.height = contentHeight+'px'; - } + var contentHeight= document.viewport.getHeight() - 216; + if ($$('div.plugin-actions').length != 0) { + var height= 0; + $$('div.plugin-actions').each(function(s) { + height+= s.getHeight(); + }); + contentHeight-= height + 5; + } + + if (Prototype.Browser.Gecko || Prototype.Browser.IE) { + document.getElementById('d_scrollbody').style.height = contentHeight+23+'px'; + document.getElementById('t_nscrollbody').style.height = contentHeight+'px'; + } else { + document.getElementById('d_scrollbody').style.minHeight = contentHeight+23+'px'; + document.getElementById('t_nscrollbody').style.minHeight = contentHeight+'px'; + } + } return true; }