fixing a resize bug

This commit is contained in:
Rolux 2010-02-21 11:10:11 +05:30
parent 541fdb6dc9
commit 4eb9898216

View File

@ -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(