From e5d0c3fd20a454168d7bc0c88b4cd99c16d81718 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 11 Oct 2011 10:34:02 +0000 Subject: [PATCH] make dialog fire resize events after maximize and reset --- source/Ox.UI/js/Calendar/Ox.Calendar.js | 1 - source/Ox.UI/js/Window/Ox.Dialog.js | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Calendar/Ox.Calendar.js b/source/Ox.UI/js/Calendar/Ox.Calendar.js index 8806c1fe..8a61f1cf 100644 --- a/source/Ox.UI/js/Calendar/Ox.Calendar.js +++ b/source/Ox.UI/js/Calendar/Ox.Calendar.js @@ -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; }; diff --git a/source/Ox.UI/js/Window/Ox.Dialog.js b/source/Ox.UI/js/Window/Ox.Dialog.js index f5afbcf5..aced2e53 100644 --- a/source/Ox.UI/js/Window/Ox.Dialog.js +++ b/source/Ox.UI/js/Window/Ox.Dialog.js @@ -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) {