summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 031708b)
raw | patch | inline | side by side (parent: 031708b)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 1 May 2010 17:42:11 +0000 (17:42 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 1 May 2010 17:42:11 +0000 (17:42 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18012 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/include/gosa.js | patch | blob | history |
index 61096caea5852b440c784a371721e012525760a6..25df0a08b5e478fcb244a4863bcadc28b3d979bb 100644 (file)
function resizeHandler (e) {
if (!e) e= window.event;
- 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;
- }
-
- // For WebKit #3239 has to be resolved by Apple, then it works
- // in Webkit / Gecko based browsers
- if (Prototype.Browser.Gecko || Prototype.Browser.WebKit){
- if ($("d_scrollbody") && $("t_nscrollbody")) {
- document.getElementById('d_scrollbody').style.height = contentHeight+23+'px';
- document.getElementById('t_nscrollbody').style.height = contentHeight+'px';
+ // 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;
}
- } else {
- document.getElementById('d_scrollbody').style.minHeight = contentHeight+23+'px';
- document.getElementById('t_nscrollbody').style.minHeight = contentHeight+'px';
+
+ document.getElementById('d_scrollbody').style.height = contentHeight+23+'px';
+ document.getElementById('t_nscrollbody').style.height = contentHeight+'px';
}
+
return true;
}