make dialog fire resize events after maximize and reset
This commit is contained in:
parent
c7d268a7aa
commit
e5d0c3fd20
2 changed files with 8 additions and 1 deletions
|
@ -1139,7 +1139,6 @@ Ox.Calendar = function(options, self) {
|
|||
self.options.width = that.width();
|
||||
self.options.height = that.height();
|
||||
self.$zoomInput.options({size: self.options.width});
|
||||
getLines();
|
||||
renderCalendar();
|
||||
return that;
|
||||
};
|
||||
|
|
|
@ -297,6 +297,10 @@ Ox.Dialog = function(options, self) {
|
|||
height: self.options.maxHeight
|
||||
}, true);
|
||||
self.maximized = !self.maximized;
|
||||
that.triggerEvent('resize', {
|
||||
width: self.options.width,
|
||||
height: self.options.height
|
||||
});
|
||||
}
|
||||
|
||||
function mousedownLayer() {
|
||||
|
@ -331,6 +335,10 @@ Ox.Dialog = function(options, self) {
|
|||
left: left,
|
||||
top: top
|
||||
}), animate);
|
||||
that.triggerEvent('resize', {
|
||||
width: self.options.width,
|
||||
height: self.options.height
|
||||
});
|
||||
}
|
||||
|
||||
function resizestart(event) {
|
||||
|
|
Loading…
Reference in a new issue