Home page bug (iOS)

by thebruce ⌂, Ontario, Canada, Tuesday, March 05, 2013, 16:11 (4068 days ago) @ kapowaz

A header like this needn't be absolutely positioned anyway, since it's the first thing on the page. Seems like an odd choice to me, but then I've not delved into the rest of the markup to see how it's structured.

Yeah, it doesn't need to be but it does depend on what else is done on the page structure.

Position: fixed used to be unsupported in earlier versions of iOS, but now it's actually supported it sometimes feels like more trouble than it's worth.

Mainly the problem is if it's fixed - it does remain in place, but it's also affected by zoom, which means it'll zoom beyond the viewport, but there's no way to scroll to see what's of the screen because it's not affected by scroll :P You can write a script that checks the viewport size then resizes all fixed elements to be shrunk and visible again, but that just causes even more headaches... mobile developers should use :fixed very conservatively, imo. Great for desktop, notsomuch for mobile.


Complete thread:

 RSS Feed of thread