From 3ead887bf7c4eca31012e45d8c917e1464bc0646 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 17 Feb 2015 12:50:55 +0000 Subject: [PATCH] Fix splitter widget dock to the fullSize if there is no size preference yet --- etemplate/js/et2_widget_split.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etemplate/js/et2_widget_split.js b/etemplate/js/et2_widget_split.js index 3dc542b324..c0fe5075ad 100644 --- a/etemplate/js/et2_widget_split.js +++ b/etemplate/js/et2_widget_split.js @@ -196,6 +196,12 @@ var et2_split = et2_DOMWidget.extend([et2_IResizeable,et2_IPrint], this.prefSize = pref[this.orientation == "v" ?'sizeLeft' : 'sizeTop']; } } + // If there is no preference yet, set it to half size + // Otherwise the right pane gets the fullsize + else + { + this.prefSize = this.orientation == "v" ? options.sizeLeft: options.sizeTop; + } } // Avoid double init