[Pkg-owncloud-commits] [owncloud] 91/172: Use jquery to get the window width

David Prévot taffit at moszumanska.debian.org
Sun May 18 20:09:43 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 c85e6d919eb333900225b8f107e03843c0f85e36
Author: Robin Appelman <icewind at owncloud.com>
Date:   Tue May 13 12:58:02 2014 +0200

    Use jquery to get the window width
---
 core/js/jquery.ocdialog.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/js/jquery.ocdialog.js b/core/js/jquery.ocdialog.js
index 66d9b12..e2433f5 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 + (window.innerWidth - self.$dialog.outerWidth())/2,
-					top: pos.top + (window.innerHeight - 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