Missing Scrollbars on Divs on the iPhone
Posted: March 9th, 2009 | Author: Jan Gorman | Filed under: Code | Tags: Code, html, iphone, javascript, jQuery | No Comments »After relaunching Nickel yesterday I today had a look at the site on the iPhone. I hadn’t bothered before because YAGNI. Unfortunately the iPhone doesn’t display any scrollbars for DIVs that have an overflow set (incidentally it won’t show any on iframes either). Lucky for us that we’re trying to get people to use their keyboards to navigate the projects anyway using the excellent jQuery scrollTo plugin. I added the scrolling functionality to the keyboard icons on the page and it all works nicely on the iPhone now as well.