Automattic/jetpack — pull request #371 by rads (2014-03-17 21:37:32+00:00)
Title: Make slide titles visible in all viewport sizes

Before this change the slide titles would be cut off or missing on iPhone and iPad in landscape orientation. See issue #336. The slide title is currently positioned as a percentage of the current window height. Since the title itself is a fixed height, I wasn't able to find a percentage that worked for all device resolutions. My fix is to check the actual height of the slide title and make sure it will be positioned with enough space to show the first line regardless of the resolution.

This solution makes the `fitMeta` method a little more complex, but I think the result looks better. I made a page of before and after screenshots here: https://dl.dropboxusercontent.com/u/249607/jetpack/titles/index.html

I'd be glad to hear any suggestions on a better way to do this. Another way would be to manually set the positions of the title for specific resolutions, but this way is more general.