summaryrefslogtreecommitdiff
path: root/skins/default/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'skins/default/functions.js')
-rw-r--r--skins/default/functions.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/skins/default/functions.js b/skins/default/functions.js
index 7425a1e6f..bc9a486d7 100644
--- a/skins/default/functions.js
+++ b/skins/default/functions.js
@@ -145,10 +145,9 @@ show_messagemenu: function(show)
show = this.messagemenu.is(':visible') ? false : true;
var ref = rcube_find_object('messagemenulink');
- if (show && ref) {
- var pos = $(ref).offset();
- this.messagemenu.css({ left:pos.left, top:(pos.top + ref.offsetHeight) });
- }
+ if (show && ref)
+ this.messagemenu.css({ left:ref.offsetLeft, top:(ref.offsetTop + ref.offsetHeight) });
+
this.messagemenu[show?'show':'hide']();
},