Make sure the prefSize gets set in splitter

This commit is contained in:
Hadi Nategh 2015-03-03 11:43:48 +00:00
parent 9189e9d8e1
commit 0ffad430f0

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
// Otherwise the right pane gets the fullsize
else
if (typeof this.prefSize == 'undefined' || !this.prefSize)
{
this.prefSize = this.orientation == "v" ? options.sizeLeft: options.sizeTop;
}