[extensions-web] Position the 'out-of-date' message in the center of the element
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Position the 'out-of-date' message in the center of the element
- Date: Mon, 12 Dec 2011 19:29:43 +0000 (UTC)
commit 2a13bd4edddc3e73f29619e54fd5a5cc6fab73c0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Dec 12 14:29:30 2011 -0500
Position the 'out-of-date' message in the center of the element
sweettooth/static/js/extensions.js | 2 +-
sweettooth/static/js/jquery.tipsy.js | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index caba1bf..86feed0 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -305,7 +305,7 @@ function($, messages, dbusProxy, extensionUtils) {
var vpk = extensionUtils.grabProperExtensionVersion(svm, dbusProxy.ShellVersion);
if (vpk === null) {
- $(this).addClass('out-of-date').attr('title', "This extension is incompatible with your version of GNOME").tipsy({ gravity: 's', fade: true });
+ $(this).addClass('out-of-date').attr('title', "This extension is incompatible with your version of GNOME").tipsy({ gravity: 'c', fade: true });
}
});
diff --git a/sweettooth/static/js/jquery.tipsy.js b/sweettooth/static/js/jquery.tipsy.js
index 9567ed3..89112b6 100644
--- a/sweettooth/static/js/jquery.tipsy.js
+++ b/sweettooth/static/js/jquery.tipsy.js
@@ -49,6 +49,9 @@
case 'w':
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width + this.options.offset};
break;
+ case 'c':
+ tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width / 2 - actualWidth / 2};
+ break;
}
if (gravity.length == 2) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]