diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2014-04-29 15:34:48 +0200 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2014-04-29 15:34:48 +0200 |
commit | 14e568b13c7d767e5c9011254392969ee10cf444 (patch) | |
tree | cd257117f05adef088b577a8cccd1062383e4bd1 /core/js/jquery.ocdialog.js | |
parent | 6b02126dc1c8ba9de5b87c6c8568feea5948d2a0 (diff) | |
download | nextcloud-server-14e568b13c7d767e5c9011254392969ee10cf444.tar.gz nextcloud-server-14e568b13c7d767e5c9011254392969ee10cf444.zip |
fix oc dialog because the body isn't 100% x 100% in dimensions anymore
Diffstat (limited to 'core/js/jquery.ocdialog.js')
-rw-r--r-- | core/js/jquery.ocdialog.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/jquery.ocdialog.js b/core/js/jquery.ocdialog.js index 02cd6ac1466..b91f3ed7654 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 }); }); |