Google Chrome window.open height includes URL bar
- by andyjeffries
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.