diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-01-21 17:12:43 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-01-21 17:12:43 +0000 |
| commit | b066ff00afcb4bc9ea0493882c931908f4c57f81 (patch) | |
| tree | 9c5fb0740ab1cb22459d55487496b05eead78626 | |
| parent | 7139f105f32ffa048b17fd7e27f1dcff44e8bda1 (diff) | |
Fix window size detection on IE
git-svn-id: https://svn.roundcube.net/trunk@4440 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/skins/default/functions.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/skins/default/functions.js b/roundcubemail/skins/default/functions.js index 62e4783cb..9eed5f054 100644 --- a/roundcubemail/skins/default/functions.js +++ b/roundcubemail/skins/default/functions.js @@ -128,13 +128,13 @@ show_popupmenu: function(popup, show) if (show && ref) { var parent = $(ref).parent(), + win = $(window), pos = parent.hasClass('dropbutton') ? parent.offset() : $(ref).offset(); - if (!above && pos.top + ref.offsetHeight + obj.height() > window.innerHeight) + if (!above && pos.top + ref.offsetHeight + obj.height() > win.height()) above = true; - - if (pos.left + obj.width() > window.innerWidth) - pos.left = window.innerWidth - obj.width() - 30; + if (pos.left + obj.width() > win.width()) + pos.left = win.width() - obj.width() - 30; obj.css({ left:pos.left, top:(pos.top + (above ? -obj.height() : ref.offsetHeight)) }); } |
