From 8956b6f4564d32a5f0110cd8f33cce34a93517c5 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 27 Sep 2013 12:50:11 +0000 Subject: [PATCH] better window height/resize control for display window; ported from compose --- felamimail/js/jscode/view_message.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/felamimail/js/jscode/view_message.js b/felamimail/js/jscode/view_message.js index 02cf700775..934dde778a 100644 --- a/felamimail/js/jscode/view_message.js +++ b/felamimail/js/jscode/view_message.js @@ -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) {