Sunday 15 September 2013

$(window).width() won't update after pinch zoom (chrome IOS)

$(window).width() won't update after pinch zoom (chrome IOS)

I'm trying to align a div to the center using $(window).width(). on
Windows this trick works well, as $(window).width() changes when zooming
the page.
However, When zooming the page on Chrome IOS, $(window).width() returns
always the same value, causing the div to be aligned to center only when
the page is not zoomed in (nor zoomed out)
any ideas?
Thanks.

No comments:

Post a Comment