From 4eb9898216f20932c59510ac6d4b61b3862ad21f Mon Sep 17 00:00:00 2001 From: Rolux Date: Sun, 21 Feb 2010 11:10:11 +0530 Subject: [PATCH] fixing a resize bug --- build/js/ox.ui.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 80cf213..9357f33 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -1244,9 +1244,9 @@ requires .defaults({ title: "", buttons: [], - height: 128, + height: 192, minHeight: 128, - minWidth: 192, + minWidth: 256, width: 384 }) .options(options || {}) @@ -1255,7 +1255,7 @@ requires //left: (($document.width() - self.options.width) / 2) + "px", //top: (($document.height() - self.options.height - 80) / 2) + "px", width: self.options.width + "px", - height: (self.options.height + 80) + "px" + height: self.options.height + "px" }); if (!Ox.isArray(self.options.buttons[0])) { @@ -1276,7 +1276,7 @@ requires that.$content = new Ox.Container() .addClass("OxContent") .css({ - height: self.options.height + "px" + height: (self.options.height - 80) + "px" }) .appendTo(that); that.$buttonsbar = new Ox.Bar({}) @@ -1350,10 +1350,13 @@ requires documentHeight = $document.height(), elementWidth = that.width(), elementHeight = that.height(), + offset = that.offset(), x = event.clientX, y = event.clientY; $window.mousemove(function(event) { that.css({ + left: offset.left, + top: offset.top, margin: 0 }); var width = Ox.limit(