Fix splitter widget dock to the fullSize if there is no size preference yet

This commit is contained in:
Hadi Nategh 2015-02-17 12:50:55 +00:00
parent 2a5971258b
commit 3ead887bf7

View File

@ -196,6 +196,12 @@ var et2_split = et2_DOMWidget.extend([et2_IResizeable,et2_IPrint],
this.prefSize = pref[this.orientation == "v" ?'sizeLeft' : 'sizeTop']; 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 // Avoid double init