summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ea61be)
raw | patch | inline | side by side (parent: 2ea61be)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 May 2010 18:10:07 +0000 (18:10 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 May 2010 18:10:07 +0000 (18:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18059 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/include/gosa.js | patch | blob | history |
index 25df0a08b5e478fcb244a4863bcadc28b3d979bb..862975fef8866350a8a55bdbe876b1e6ad9dd19f 100644 (file)
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;
}