forked from 0x2620/oxjs
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
|
|
@ -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…
Add table
Add a link
Reference in a new issue