Make 100% an invalid preference size, fixes mail splitter losing splitter size preference

This commit is contained in:
Nathan Gray 2015-09-30 15:29:26 +00:00
parent cb5d0bd419
commit 718dc25815

View File

@ -297,7 +297,10 @@ var et2_split = et2_DOMWidget.extend([et2_IResizeable,et2_IPrint],
var size = self.orientation == "v" ? {sizeLeft: self.left.width()} : {sizeTop: self.left.height()};
self.prefSize = size[self.orientation == "v" ?'sizeLeft' : 'sizeTop'];
var prefInPercent = self.orientation == "v" ?{sizeLeft:pix2per(size.sizeLeft)}:{sizeTop:pix2per(size.sizeTop)};
self.egw().set_preference(self.egw().getAppName(), 'splitter-size-' + self.id, prefInPercent);
if(parseInt(self.orientation == 'v' ? prefInPercent.sizeLeft : prefInPercent.sizeTop) < 100)
{
self.egw().set_preference(self.egw().getAppName(), 'splitter-size-' + self.id, prefInPercent);
}
}
// Ok, update children