mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 10:23:28 +01:00
better window height/resize control for display window; ported from compose
This commit is contained in:
parent
13f5753bb1
commit
8956b6f456
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user