diff --git a/etemplate/js/et2_widget_split.js b/etemplate/js/et2_widget_split.js index f05b536a44..b043b03c9d 100644 --- a/etemplate/js/et2_widget_split.js +++ b/etemplate/js/et2_widget_split.js @@ -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