forked from 0x2620/oxjs
dialog, continued
This commit is contained in:
parent
bfcf9a7857
commit
c5bc1390bf
2 changed files with 7 additions and 9 deletions
|
|
@ -1252,9 +1252,6 @@ requires
|
|||
.options(options || {})
|
||||
.addClass("OxDialog")
|
||||
.css({
|
||||
//left: (($document.width() - self.options.width) / 2) + "px",
|
||||
//top: (($document.height() - self.options.height - 80) / 2) + "px",
|
||||
top: parseInt(-$document.height() / 10) + "px",
|
||||
width: self.options.width + "px",
|
||||
height: self.options.height + "px"
|
||||
});
|
||||
|
|
@ -1314,7 +1311,7 @@ requires
|
|||
function center() {
|
||||
that.css({
|
||||
left: 0,
|
||||
top: parseInt(-$document.height() / 10) + "px", // fixme: duplicated
|
||||
top: parseInt(-$document.height() / 10) + "px",
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
margin: "auto"
|
||||
|
|
@ -1430,6 +1427,7 @@ requires
|
|||
Ox.print("opening...")
|
||||
that.$layer.appendTo($body);
|
||||
Ox.print("opening...")
|
||||
center();
|
||||
that.css({
|
||||
opacity: 0
|
||||
}).appendTo(that.$layer).animate({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue