fixing a resize bug
This commit is contained in:
parent
541fdb6dc9
commit
4eb9898216
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user