better window height/resize control for display window; ported from compose

This commit is contained in:
Klaus Leithoff 2013-09-27 12:50:11 +00:00
parent 13f5753bb1
commit 8956b6f456

View File

@ -50,7 +50,14 @@ function initAll()
if (fm_height >= 750) window.resizeBy(0,resizeHeight);
}
if (egw_getWindowOuterHeight()>screen.availHeight) window.resizeBy(0,screen.availHeight-egw_getWindowOuterHeight());
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);
}
var t = window.outerHeight+screen.availHeight-screen.height;
if (screen.height>screen.availHeight && !sizeAdjusted && t>650) window.resizeBy(0,screen.availHeight-screen.height);
var headerTable = document.getElementById('headerTable');
var headerDIV = document.getElementById('headerDIV');
if (headerTable) {