diff --git a/api/js/jsapi/egw.js b/api/js/jsapi/egw.js index 7fa1f8be3c..b94d432a8a 100644 --- a/api/js/jsapi/egw.js +++ b/api/js/jsapi/egw.js @@ -335,6 +335,7 @@ window.app = {classes: {}}; // Don't let the window gets horizental scrollbar var scrollWidth = document.body.scrollWidth - document.body.clientWidth; + var scrollHeight = document.body.scrollHeight - w.height; if (scrollWidth > 0 && scrollWidth + egw_getWindowOuterWidth() < screen.availWidth) delta_width = -scrollWidth; if (delta_height && egw_getWindowOuterHeight() >= egw.availHeight()) @@ -342,7 +343,7 @@ window.app = {classes: {}}; delta_height = 0; } if((delta_width != 0 || delta_height != 0) && - (delta_width >2 || delta_height >2 || delta_width<-2 || delta_height < -2)) + (delta_width >2 || delta_height >2 || delta_width<-2 || delta_height < -2) && (scrollHeight>0 || scrollWidth>0)) { if (window.framework && typeof window.framework.resize_popup != 'undefined')