aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/js/switchbox.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--themes/default/js/switchbox.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/js/switchbox.js b/themes/default/js/switchbox.js
index 4741e7980..b20f82d50 100644
--- a/themes/default/js/switchbox.js
+++ b/themes/default/js/switchbox.js
@@ -2,8 +2,8 @@
var sbFunc = function(link, box) {
jQuery(link).click(function() {
var elt = jQuery(box);
- elt.css("left", Math.min( jQuery(this).offset().left, jQuery(window).width() - elt.outerWidth(true) - 5))
- .css("top", jQuery(this).offset().top + jQuery(this).outerHeight(true))
+ elt.css("left", Math.min( jQuery(this).position().left, jQuery(window).width() - elt.outerWidth(true) - 5))
+ .css("top", jQuery(this).position().top + jQuery(this).outerHeight(true))
.toggle();
return false;
});