From c5bc1390bff5254562aa8bce73b3417b869cf578 Mon Sep 17 00:00:00 2001 From: Rolux Date: Sun, 21 Feb 2010 12:02:48 +0530 Subject: [PATCH] dialog, continued --- build/css/ox.ui.css | 10 +++++----- build/js/ox.ui.js | 6 ++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/build/css/ox.ui.css b/build/css/ox.ui.css index 5551b510..583efd79 100644 --- a/build/css/ox.ui.css +++ b/build/css/ox.ui.css @@ -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; } diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 9b305f82..024cfc9f 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -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({