Inner width on iOS
-
Anyone know why web browsers iOS misreports window.innerWidth on initial display?
Asking for a friend. No, really.
EDIT: to avoid irrelevant
-
@boomzilla I jumped off the iOS ship a few years ago, but as I recall, they don't actually allow other HTML renderers, so all the third party browsers use the same iOS webview.
-
@error said in Inner width on Chrome / iOS:
@boomzilla I jumped off the iOS ship a few years ago, but as I recall, they don't actually allow other HTML renderers, so all the third party browsers use the same iOS webview.
This. "Chrome" on iOS is just safari under the hood, and mobile safari is wack. Especially around sizing, as iOS lies about pixels everywhere.
-
Yeah, yeah, OK, fine. Forget about chrome specifically.
-
But using Safari as a search term I found this:
-
@boomzilla said in Inner width on iOS:
But using Safari as a search term I found this:
I'm told that this works on Safari Safari but that on other browsers things like scrollbars mess it up.