diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-01-25 14:27:31 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-01-25 14:27:31 +0100 |
commit | bd0daee7fd8d3e58433b0c394b1bc58b8b52e8e3 (patch) | |
tree | 9ed9e0098341765970b368431b3153f4112e9e68 /program/js/app.js | |
parent | 6c27c3b55e7516ae1d2b99ecd1188203d022de78 (diff) | |
parent | 18372a236d459f2a098c8604a0f912f9aa728f98 (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/program/js/app.js b/program/js/app.js index 4841be05a..c2456ac4f 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -583,11 +583,11 @@ function rcube_webmail() var prevstate = this.env.compose_extwin; $("input[name='_action']", this.gui_objects.messageform).val('compose'); this.gui_objects.messageform.action = this.url('mail/compose', { _id: this.env.compose_id, _extwin: 1 }); - this.gui_objects.messageform.target = this.open_window('', 1150, 900); + this.gui_objects.messageform.target = this.open_window('', 1100, 900); this.gui_objects.messageform.submit(); } else { - this.open_window(this.env.permaurl, 1000, 1200); + this.open_window(this.env.permaurl, 900, 900); } break; @@ -1684,11 +1684,10 @@ function rcube_webmail() var w = Math.min(width, screen.width - 10), h = Math.min(height, screen.height - 100), l = (screen.width - w) / 2 + (screen.left || 0), - t = Math.max(0, (screen.height - h) / 2 + (screen.top || 0) - 20); - - var wname = 'rcmextwin' + new Date().getTime(), - extwin = window.open(url + '&_extwin=1', wname, 'width='+w+',height='+h+',top='+t+',left='+l+',resizable=yes,toolbar=no,status=no'); - extwin.moveTo(l,t); + t = Math.max(0, (screen.height - h) / 2 + (screen.top || 0) - 20), + wname = 'rcmextwin' + new Date().getTime(), + extwin = window.open(url + '&_extwin=1', wname, + 'width='+w+',height='+h+',top='+t+',left='+l+',resizable=yes,toolbar=no,status=no,location=no'); // write loading... message to empty windows if (!url && extwin.document) { @@ -1696,7 +1695,9 @@ function rcube_webmail() } // focus window, delayed to bring to front - window.setTimeout(function(){ extwin.focus(); }, 10); + window.setTimeout(function() { extwin.focus(); }, 10); + // position window with setTimeout for Chrome (#1488931) + window.setTimeout(function() { extwin.moveTo(l,t); }, bw.chrome ? 100 : 10); return wname; }; |