From cbb3055fc5526ce9cd5ee95c2054c01f8f40d761 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 27 Sep 2013 09:58:58 +0000 Subject: [PATCH] make sure compose window will not be subject of further height adaptions in inital step of opening, if the compose window is opened with a height smaller than 650 --- felamimail/js/jscode/composeMessage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/felamimail/js/jscode/composeMessage.js b/felamimail/js/jscode/composeMessage.js index ec0b603824..5f3c790e7e 100644 --- a/felamimail/js/jscode/composeMessage.js +++ b/felamimail/js/jscode/composeMessage.js @@ -59,7 +59,8 @@ function initAll() sizeAdjusted = true; window.resizeBy(0,1000-window.outerHeight); } - if (screen.height>screen.availHeight && !sizeAdjusted) window.resizeBy(0,screen.availHeight-screen.height); + var t = window.outerHeight+screen.availHeight-screen.height; + if (screen.height>screen.availHeight && !sizeAdjusted && t>650) window.resizeBy(0,screen.availHeight-screen.height); //tab.init(); //alert(document.onkeydown); var titletext = document.getElementById('fm_compose_subject').value;