mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
WIP toggle sidebar menu:
- Trigger resize for split widget, too, since the toggle can change the split pane width size
This commit is contained in:
parent
5a950ae8dc
commit
707c68689f
@ -182,7 +182,7 @@ var et2_split = et2_DOMWidget.extend([et2_IResizeable,et2_IPrint],
|
|||||||
sizeTop: this.dynheight.outerNode.height() / 2,
|
sizeTop: this.dynheight.outerNode.height() / 2,
|
||||||
sizeLeft: this.dynheight.outerNode.width() / 2
|
sizeLeft: this.dynheight.outerNode.width() / 2
|
||||||
};
|
};
|
||||||
|
|
||||||
var widget = this;
|
var widget = this;
|
||||||
//Convert percent size to pixel
|
//Convert percent size to pixel
|
||||||
var per2pix = function(_size)
|
var per2pix = function(_size)
|
||||||
@ -302,12 +302,9 @@ var et2_split = et2_DOMWidget.extend([et2_IResizeable,et2_IPrint],
|
|||||||
|
|
||||||
// Ok, update children
|
// Ok, update children
|
||||||
self.iterateOver(function(widget) {
|
self.iterateOver(function(widget) {
|
||||||
if(widget != self)
|
|
||||||
{
|
|
||||||
widget.resize();
|
widget.resize();
|
||||||
// Above forcing is not enough for Firefox, defer
|
// Above forcing is not enough for Firefox, defer
|
||||||
window.setTimeout(jQuery.proxy(function() {this.resize();},widget),200);
|
window.setTimeout(jQuery.proxy(function() {this.resize();},widget),200);
|
||||||
}
|
|
||||||
},self,et2_IResizeable);
|
},self,et2_IResizeable);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user