Content

Safari 3 fullscreen pop up window problem

Sunday 17 February 2008 - Filed under Others

I’m not sure how serious it is, but this may affect many sites especially flash websites.

In safari 3 when you call window.open(“url.html”,”window_name”,”width=”+screen.availWidth+”,height=”+screen.availHeight), being different from other browsers, safari sets the inner document width and height to the screen availWidth and availHeight. This means, the popup window is actually bigger than availWidth and availHeight because there is a title bar at the top of the window. There’ll be some content hidden outside the screen for Mac and some hidden underneath the task bar for PC.

To avoid this problem, write a window.resize(screen.availWidth, screen.availHeight) in the popped up page.

Will Safari 3 replace IE?

…becoming javascript’s public enemy No.1?

p.s.  An interesting thing I found out from my mistake. If you call window.moveTo(x,y) supplying x,y with something not numeric (NaN, null, undefined), the window will disappear. Interesting? Not?

2008-02-17  »  5566

Talkback x 2

  1. Flug USA
    22 August 2008 @ 7:24 am

    Well I don´t think that safari will ever replace IE. Microsoft is improving it very well as I saw at the beta version of IE8, but they still have a long way to close the gap on FF. I really love to work with safari and love its macintosh-style, but it isn´t just as commen as the other browsers.

  2. 5566
    23 August 2008 @ 4:25 am

    @Flug,

    It was just a joke. I was trying to say that if safari coninues like this, soon all developers will start to hate safari more than IE.

Share your thoughts

Re: Safari 3 fullscreen pop up window problem







Tags you can use (optional):
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

For spam filtering purposes, please copy the number 1567 to the field below: