summaryrefslogtreecommitdiff
path: root/skins/default/functions.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-05-26 12:28:04 +0000
committerthomascube <thomas@roundcube.net>2009-05-26 12:28:04 +0000
commitb4f7c665bbe31d4ddbdca8c9f89eedb1d6187582 (patch)
treea4430ed9bc3318cfe0bf6ffa18a2cad94ddddae1 /skins/default/functions.js
parent8234b4c6bc3c9cd9cb639039d3080131098dd966 (diff)
Tweak default skin with better icons (sprites) and move IE hacks to an external file included by conditional comments
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']();
},