dialog, continued
This commit is contained in:
parent
4bdac7c195
commit
890ccd1b27
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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…
Reference in New Issue
Block a user