From 707c68689f8ba735b6a50ac2aed2a5f6ca269ad0 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 10 Sep 2015 09:56:38 +0000 Subject: [PATCH] WIP toggle sidebar menu: - Trigger resize for split widget, too, since the toggle can change the split pane width size --- etemplate/js/et2_widget_split.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/etemplate/js/et2_widget_split.js b/etemplate/js/et2_widget_split.js index f0c09e8a61..3779280516 100644 --- a/etemplate/js/et2_widget_split.js +++ b/etemplate/js/et2_widget_split.js @@ -182,7 +182,7 @@ var et2_split = et2_DOMWidget.extend([et2_IResizeable,et2_IPrint], sizeTop: this.dynheight.outerNode.height() / 2, sizeLeft: this.dynheight.outerNode.width() / 2 }; - + var widget = this; //Convert percent size to pixel var per2pix = function(_size) @@ -302,12 +302,9 @@ var et2_split = et2_DOMWidget.extend([et2_IResizeable,et2_IPrint], // Ok, update children self.iterateOver(function(widget) { - if(widget != self) - { widget.resize(); // Above forcing is not enough for Firefox, defer window.setTimeout(jQuery.proxy(function() {this.resize();},widget),200); - } },self,et2_IResizeable); }); }