From 0ffad430f0844f80e61c597e3d75ad2350ce7093 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 3 Mar 2015 11:43:48 +0000 Subject: [PATCH] Make sure the prefSize gets set in splitter --- etemplate/js/et2_widget_split.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_split.js b/etemplate/js/et2_widget_split.js index d0db876205..031673085c 100644 --- a/etemplate/js/et2_widget_split.js +++ b/etemplate/js/et2_widget_split.js @@ -234,7 +234,7 @@ var et2_split = et2_DOMWidget.extend([et2_IResizeable,et2_IPrint], } // If there is no preference yet, set it to half size // Otherwise the right pane gets the fullsize - else + if (typeof this.prefSize == 'undefined' || !this.prefSize) { this.prefSize = this.orientation == "v" ? options.sizeLeft: options.sizeTop; }