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:52:49 +00:00
parent 2654dccb45
commit 5fe98953a1

View File

@ -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