From c1943235b19a76d1ca1eb168cb93e32bb2e6a024 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 5 May 2015 12:39:11 +0000 Subject: [PATCH] Trigger widget's resize only if there's excess_height --- etemplate/js/etemplate2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/etemplate2.js b/etemplate/js/etemplate2.js index b4fde84c80..302fca4e28 100644 --- a/etemplate/js/etemplate2.js +++ b/etemplate/js/etemplate2.js @@ -155,7 +155,7 @@ etemplate2.prototype.resize = function(e) // "IResizeable" interface self.widgetContainer.iterateOver(function(_widget) { - _widget.resize(excess_height); + if (excess_height != 0) _widget.resize(excess_height); }, self, et2_IResizeable); } },100);