instead of moving the window up a bit, when availHeight and height differ for screen, just reduce the window.height by that portion

This commit is contained in:
Klaus Leithoff 2013-09-26 08:59:53 +00:00
parent 5a5d252b0d
commit 8519e34ea5

View File

@ -53,8 +53,13 @@ function initAll()
if (fm_height >= 750) window.resizeBy(0,resizeHeight);
}
if (egw_getWindowOuterHeight()>screen.availHeight) window.resizeBy(0,screen.availHeight-egw_getWindowOuterHeight());
if (window.outerHeight>1000) window.resizeBy(0,1000-window.outerHeight);
if (screen.height>screen.availHeight) window.moveBy(0,screen.availHeight-screen.height);
var sizeAdjusted = false;
if (window.outerHeight>1000)
{
sizeAdjusted = true;
window.resizeBy(0,1000-window.outerHeight);
}
if (screen.height>screen.availHeight && !sizeAdjusted) window.resizeBy(0,screen.availHeight-screen.height);
//tab.init();
//alert(document.onkeydown);
var titletext = document.getElementById('fm_compose_subject').value;