[Pkg-owncloud-commits] [owncloud] 18/172: fix oc dialog because the body isn't 100% x 100% in dimensions anymore
David Prévot
taffit at moszumanska.debian.org
Sun May 18 20:09:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 14e568b13c7d767e5c9011254392969ee10cf444
Author: Morris Jobke <morris.jobke at gmail.com>
Date: Tue Apr 29 15:34:48 2014 +0200
fix oc dialog because the body isn't 100% x 100% in dimensions anymore
---
core/css/jquery.ocdialog.css | 7 +++----
core/js/jquery.ocdialog.js | 4 ++--
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/core/css/jquery.ocdialog.css b/core/css/jquery.ocdialog.css
index a122113..4dccba2 100644
--- a/core/css/jquery.ocdialog.css
+++ b/core/css/jquery.ocdialog.css
@@ -24,12 +24,11 @@
}
.oc-dialog-buttonrow {
background: white;
- float: right;
- position: relative;
- bottom: 0;
+ position: absolute;
+ bottom: 15px;
+ right: 15px;
display: block;
margin-top: 10px;
- width: 100%;
}
.oc-dialog-close {
diff --git a/core/js/jquery.ocdialog.js b/core/js/jquery.ocdialog.js
index 02cd6ac..b91f3ed 100644
--- a/core/js/jquery.ocdialog.js
+++ b/core/js/jquery.ocdialog.js
@@ -67,8 +67,8 @@
self.parent = self.$dialog.parent().length > 0 ? self.$dialog.parent() : $('body');
var pos = self.parent.position();
self.$dialog.css({
- left: pos.left + (self.parent.width() - self.$dialog.outerWidth())/2,
- top: pos.top + (self.parent.height() - self.$dialog.outerHeight())/2
+ left: pos.left + (window.innerWidth - self.$dialog.outerWidth())/2,
+ top: pos.top + (window.innerHeight - self.$dialog.outerHeight())/2
});
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list