1
0
Fork 0
forked from 0x2620/oxjs

fix resize bugs in calendar, list calendar etc

This commit is contained in:
rlx 2012-01-30 22:11:05 +00:00
commit 93fe766c7b
6 changed files with 40 additions and 19 deletions

View file

@ -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) {