dialog, continued

This commit is contained in:
Rolux 2010-02-21 12:02:48 +05:30
parent bfcf9a7857
commit c5bc1390bf
2 changed files with 7 additions and 9 deletions

View file

@ -61,11 +61,11 @@ Dialog
.OxDialog {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
margin: auto;
//left: 0;
//top: 0;
//right: 0;
//bottom: 0;
//margin: auto;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
}

View file

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