dialog, continued
This commit is contained in:
parent
bfcf9a7857
commit
c5bc1390bf
2 changed files with 7 additions and 9 deletions
|
@ -61,11 +61,11 @@ Dialog
|
||||||
|
|
||||||
.OxDialog {
|
.OxDialog {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
//left: 0;
|
||||||
top: 0;
|
//top: 0;
|
||||||
right: 0;
|
//right: 0;
|
||||||
bottom: 0;
|
//bottom: 0;
|
||||||
margin: auto;
|
//margin: auto;
|
||||||
-moz-border-radius: 8px;
|
-moz-border-radius: 8px;
|
||||||
-webkit-border-radius: 8px;
|
-webkit-border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1252,9 +1252,6 @@ requires
|
||||||
.options(options || {})
|
.options(options || {})
|
||||||
.addClass("OxDialog")
|
.addClass("OxDialog")
|
||||||
.css({
|
.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",
|
width: self.options.width + "px",
|
||||||
height: self.options.height + "px"
|
height: self.options.height + "px"
|
||||||
});
|
});
|
||||||
|
@ -1314,7 +1311,7 @@ requires
|
||||||
function center() {
|
function center() {
|
||||||
that.css({
|
that.css({
|
||||||
left: 0,
|
left: 0,
|
||||||
top: parseInt(-$document.height() / 10) + "px", // fixme: duplicated
|
top: parseInt(-$document.height() / 10) + "px",
|
||||||
right: 0,
|
right: 0,
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
margin: "auto"
|
margin: "auto"
|
||||||
|
@ -1430,6 +1427,7 @@ requires
|
||||||
Ox.print("opening...")
|
Ox.print("opening...")
|
||||||
that.$layer.appendTo($body);
|
that.$layer.appendTo($body);
|
||||||
Ox.print("opening...")
|
Ox.print("opening...")
|
||||||
|
center();
|
||||||
that.css({
|
that.css({
|
||||||
opacity: 0
|
opacity: 0
|
||||||
}).appendTo(that.$layer).animate({
|
}).appendTo(that.$layer).animate({
|
||||||
|
|
Loading…
Reference in a new issue