From 607677d9e754ed00b9c5cf2c20d636410ab38862 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 9 Jan 2015 16:19:52 +0000 Subject: [PATCH] Fix getting wrong initial excess_height --- etemplate/js/etemplate2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/etemplate2.js b/etemplate/js/etemplate2.js index aee46aeb43..91f6cbf07c 100644 --- a/etemplate/js/etemplate2.js +++ b/etemplate/js/etemplate2.js @@ -127,8 +127,8 @@ etemplate2.prototype.resize = function(e) var appHeader = $j('#divAppboxHeader'); //Calculate the excess height - excess_height = egw(window).is_popup()? $j(window).height() - $j('.et2_container').height() - appHeader.outerHeight()+10: false; - + excess_height = egw(window).is_popup()? $j(window).height() - $j('.et2_container').height() - appHeader.outerHeight()+11: false; + //if (excess_height > 2 || excess_height > -2) // Recalculate excess height if the appheader is shown if (appHeader.length > 0 && appHeader.is(':visible')) excess_height -= appHeader.outerHeight()-9;