diff options
author | thomascube <thomas@roundcube.net> | 2009-05-26 12:28:04 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2009-05-26 12:28:04 +0000 |
commit | b4f7c665bbe31d4ddbdca8c9f89eedb1d6187582 (patch) | |
tree | a4430ed9bc3318cfe0bf6ffa18a2cad94ddddae1 /skins/default/functions.js | |
parent | 8234b4c6bc3c9cd9cb639039d3080131098dd966 (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.js | 7 |
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'](); }, |