mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Take splitter-bar width into account before triggering the resize
This commit is contained in:
parent
5452c7cbe1
commit
825e9078ba
@ -335,6 +335,9 @@ var et2_split = (function(){ "use strict"; return et2_DOMWidget.extend([et2_IRes
|
||||
{
|
||||
this.left.height(h);
|
||||
this.right.height(h);
|
||||
if(this.left.width() + this.right.width() + this.div.find('.splitter-bar').outerWidth() < this.div.width() ||
|
||||
this.left.width() + this.right.width()- this.div.find('.splitter-bar').outerWidth() > this.div.width())
|
||||
this.div.trigger('resize.et2_split.'+this.id, this.prefSize);
|
||||
}
|
||||
if(this.orientation == "h")
|
||||
{
|
||||
@ -353,7 +356,7 @@ var et2_split = (function(){ "use strict"; return et2_DOMWidget.extend([et2_IRes
|
||||
}
|
||||
}
|
||||
}
|
||||
if(w != old.w || h != old.h || this.left.width() + this.right.width() != this.div.width())
|
||||
if(w != old.w || h != old.h)
|
||||
{
|
||||
this.div.trigger('resize.et2_split.'+this.id, this.prefSize);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user