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.width = that.width();
|
||||||
self.options.height = that.height();
|
self.options.height = that.height();
|
||||||
self.$zoomInput.options({size: self.options.width});
|
self.$zoomInput.options({size: self.options.width});
|
||||||
getLines();
|
|
||||||
renderCalendar();
|
renderCalendar();
|
||||||
return that;
|
return that;
|
||||||
};
|
};
|
||||||
|
|
|
@ -297,6 +297,10 @@ Ox.Dialog = function(options, self) {
|
||||||
height: self.options.maxHeight
|
height: self.options.maxHeight
|
||||||
}, true);
|
}, true);
|
||||||
self.maximized = !self.maximized;
|
self.maximized = !self.maximized;
|
||||||
|
that.triggerEvent('resize', {
|
||||||
|
width: self.options.width,
|
||||||
|
height: self.options.height
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function mousedownLayer() {
|
function mousedownLayer() {
|
||||||
|
@ -331,6 +335,10 @@ Ox.Dialog = function(options, self) {
|
||||||
left: left,
|
left: left,
|
||||||
top: top
|
top: top
|
||||||
}), animate);
|
}), animate);
|
||||||
|
that.triggerEvent('resize', {
|
||||||
|
width: self.options.width,
|
||||||
|
height: self.options.height
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function resizestart(event) {
|
function resizestart(event) {
|
||||||
|
|
Loading…
Reference in a new issue