Make sure the prefSize gets set in splitter

This commit is contained in:
Hadi Nategh 2015-03-03 11:45:01 +00:00
parent f60a1c4db4
commit ea610d7338

View File

@ -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 // If there is no preference yet, set it to half size
// Otherwise the right pane gets the fullsize // Otherwise the right pane gets the fullsize
else if (typeof this.prefSize == 'undefined' || !this.prefSize)
{ {
this.prefSize = this.orientation == "v" ? options.sizeLeft: options.sizeTop; this.prefSize = this.orientation == "v" ? options.sizeLeft: options.sizeTop;
} }