Shrink header when content is just about to become hidden, instead of after an entire paragraph is hidden.
Merge pull request #1 from duckinator/master

Fix header shrinking magic.