Support inline-block elements

Scroll down works. Scroll up still wonky.