Google Chrome window.open height includes URL bar

Posted by andyjeffries on Stack Overflow See other posts from Stack Overflow or by andyjeffries
Published on 2010-01-12T11:45:24Z Indexed on 2010/05/21 21:50 UTC
Read the original article Hit count: 128

Filed under:
|
|
|

When we open a window using:

window.open("/calendar",'calendar','width=950,height=576,titlebar=no,statusbar=no,menubar=no,resizable=no,scrollbars=no');

Firefox 3 and IE 7 open it to have a content area height of 576 plus the browser items (URL bar, status bar, etc).

Chrome however opens it to have a total height of 576 meaning a scrollbar appears to the right of the content (and then the bottom because the width is now reduced).

How can I get around this? It's for a heavy layout part of a web app so it's not just a matter of "let the user scroll", the client doesn't want that.

Has anyone come across this?

I don't mind browser sniffing and opening the window bigger, but I know that's yucky these days.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html