forked from 0x2620/oxjs
fix resize bugs in calendar, list calendar etc
This commit is contained in:
parent
70376be049
commit
93fe766c7b
6 changed files with 40 additions and 19 deletions
|
|
@ -271,7 +271,7 @@ Ox.Dialog = function(options, self) {
|
|||
}
|
||||
|
||||
function maximize() {
|
||||
var offset = that.offset();
|
||||
var data, offset = that.offset();
|
||||
decenter();
|
||||
if (!self.maximized) {
|
||||
self.originalLeft = offset.left;
|
||||
|
|
@ -291,14 +291,12 @@ 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
|
||||
});
|
||||
data = {width: self.options.width, height: self.options.height};
|
||||
that.triggerEvent('resize', data).triggerEvent('resizeend', data);
|
||||
}
|
||||
|
||||
function reset(animate) {
|
||||
var offset, left, top;
|
||||
var data, left, offset, top;
|
||||
if (!self.centered) {
|
||||
offset = that.offset();
|
||||
left = Ox.limit(
|
||||
|
|
@ -317,12 +315,8 @@ Ox.Dialog = function(options, self) {
|
|||
left: left,
|
||||
top: top
|
||||
}), animate);
|
||||
/*
|
||||
that.triggerEvent('resize', {
|
||||
width: self.options.width,
|
||||
height: self.options.height
|
||||
});
|
||||
*/
|
||||
data = {width: self.options.width, height: self.options.height};
|
||||
that.triggerEvent('resize', data).triggerEvent('resizeend', data);
|
||||
}
|
||||
|
||||
function resizestart(event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue