fixing a resize bug
This commit is contained in:
parent
29c91de2fa
commit
74e9a817e3
1 changed files with 7 additions and 4 deletions
|
@ -1244,9 +1244,9 @@ requires
|
||||||
.defaults({
|
.defaults({
|
||||||
title: "",
|
title: "",
|
||||||
buttons: [],
|
buttons: [],
|
||||||
height: 128,
|
height: 192,
|
||||||
minHeight: 128,
|
minHeight: 128,
|
||||||
minWidth: 192,
|
minWidth: 256,
|
||||||
width: 384
|
width: 384
|
||||||
})
|
})
|
||||||
.options(options || {})
|
.options(options || {})
|
||||||
|
@ -1255,7 +1255,7 @@ requires
|
||||||
//left: (($document.width() - self.options.width) / 2) + "px",
|
//left: (($document.width() - self.options.width) / 2) + "px",
|
||||||
//top: (($document.height() - self.options.height - 80) / 2) + "px",
|
//top: (($document.height() - self.options.height - 80) / 2) + "px",
|
||||||
width: self.options.width + "px",
|
width: self.options.width + "px",
|
||||||
height: (self.options.height + 80) + "px"
|
height: self.options.height + "px"
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!Ox.isArray(self.options.buttons[0])) {
|
if (!Ox.isArray(self.options.buttons[0])) {
|
||||||
|
@ -1276,7 +1276,7 @@ requires
|
||||||
that.$content = new Ox.Container()
|
that.$content = new Ox.Container()
|
||||||
.addClass("OxContent")
|
.addClass("OxContent")
|
||||||
.css({
|
.css({
|
||||||
height: self.options.height + "px"
|
height: (self.options.height - 80) + "px"
|
||||||
})
|
})
|
||||||
.appendTo(that);
|
.appendTo(that);
|
||||||
that.$buttonsbar = new Ox.Bar({})
|
that.$buttonsbar = new Ox.Bar({})
|
||||||
|
@ -1350,10 +1350,13 @@ requires
|
||||||
documentHeight = $document.height(),
|
documentHeight = $document.height(),
|
||||||
elementWidth = that.width(),
|
elementWidth = that.width(),
|
||||||
elementHeight = that.height(),
|
elementHeight = that.height(),
|
||||||
|
offset = that.offset(),
|
||||||
x = event.clientX,
|
x = event.clientX,
|
||||||
y = event.clientY;
|
y = event.clientY;
|
||||||
$window.mousemove(function(event) {
|
$window.mousemove(function(event) {
|
||||||
that.css({
|
that.css({
|
||||||
|
left: offset.left,
|
||||||
|
top: offset.top,
|
||||||
margin: 0
|
margin: 0
|
||||||
});
|
});
|
||||||
var width = Ox.limit(
|
var width = Ox.limit(
|
||||||
|
|
Loading…
Reference in a new issue