mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Make 100% an invalid preference size, fixes mail splitter losing splitter size preference
This commit is contained in:
parent
cb5d0bd419
commit
718dc25815
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user