Works best at ..



  • Yesterday I had my Safari browser window open and had hit the zoom so that my tired old eyes could better read a wall of text. After do so I immediately jumped to google maps and looked up a location I was interested in, and in a throw back to websites prominently announcing "Works best at a screen resolution of 800x600", Google presented me with pop-up that says:

    Your browser's current font size is not supported. Please reset to the standard font size. Learn More. Dismiss
    Selecting "Learn More" popped up (Another WTF - one of those java script popup window thingies that were recently discussed) another page which stated
    Google Maps has been optimized to work best at your browser’s default zoom level.
    I use the zoom all the time and this is the first time I have seen this pop up (so I guess its fairly new), and I can't really see where the issue is when I am zoomed in.



  • You're using Safari. That is the problem.

    I don't know, maybe Safari is faking how it reports screen dimensions and dpi when it zooms? It does that for the iDevices, so it's no suprise that similar tech is present in desktop Safari.



  • Here too. I never use zoom, but this might have something to do with the updates for the "retina" macbooks? Google, FTWTF.



  • Must be safari, I could zoom in and out a gmap page both in chrome and firefox without errors...


  • Trolleybus Mechanic

    @dargor17 said:

    Must be safari, I could zoom in and out a gmap page both in chrome and firefox without errors...
     

    How the hell does Google even detect what the font size is? Is this some WTF in browser rendering engines. Does one engine just zoom in (so a zoomed in 12px font is just a bigger 12px font), while another actually changes the font-size attribute to (12px + ZoomInPx)???



  • @dhromed said:

    You're using Safari. That is the problem.


    I should have included the other details in Googles instructions:
    To reset to the default zoom level, follow the steps below for your operating system:
    • Mac OS: Press Command (⌘)+0 while viewing Google Maps.
    • Windows: Press Control+0 while viewing Google Maps.
    So Google seems to think that Windows (Explorer?) users need the same instructions..

    (Unless they mean Safari uses on Windows? But Safari on Windows XP is so bad that even I have given up on it)



  • I recently dealt with another issue caused by browser zoom. JQuery width() and height() functions were returning floating point numbers when zoom was not at 100%. This happened in IE and Chrome. I didn't bother testing FF. Wrap those puppies in parseInt and then problem solved.



  • @twilsonxpert said:

    JQuery width() and height() functions were returning floating point numbers when zoom was not at 100%. This happened in IE and Chrome. I didn't bother testing FF. Wrap those puppies in parseInt and then problem solved.
     

    Shouldn't you just use the floats and let the browser deal with it? I created roundoff problems when I tried to round things myself instead of just dumping the floats back into the DOM at which point the fitting problems went away.

     



  • Yeah, the problem came in when I tried to save the values to a database in a integer column. I don't care if they're floats on the client.



  • @Lorne Kates said:

    @dargor17 said:

    Must be safari, I could zoom in and out a gmap page both in chrome and firefox without errors...
     

    How the hell does Google even detect what the font size is? Is this some WTF in browser rendering engines. Does one engine just zoom in (so a zoomed in 12px font is just a bigger 12px font), while another actually changes the font-size attribute to (12px + ZoomInPx)???

     

    Apparently one way (not even likely foolproof though) is to check the size of an element that has its position specified in % against another element specified in px, they move apart as the zoom changes.

     



  • Seriously, Safari is shit. Google's as pissed at it as anybody else.

    @Lorne Kates said:

    How the hell does Google even detect what the font size is?

    Pretty easy. Set a CSS dimension to like 10 em, then read it back out in pixels. Browsers spoof font sizes (i.e. your "12 point" font will actually render at 20 point) but they don't spoof pixel measures, because pixel measures are used to place tooltips and stuff.



  • @OzPeter said:

    I should have included the other details in Googles instructions:

    To reset to the default zoom level, follow the steps below for your operating system:

    • Mac OS: Press Command (⌘)+0 while viewing Google Maps.
    • Windows: Press Control+0 while viewing Google Maps.
    So Google seems to think that Windows (Explorer?) users need the same instructions..

    Safari runs on Windows, you idiot.

    @OzPeter said:

    (Unless they mean Safari uses on Windows? But Safari on Windows XP is so bad that even I have given up on it)

    Oh, you actually knew that, you're just being stupid for no reason. Ok, gotcha.


Log in to reply