Fix incorrect line count caused by line-height

Temporarily reset element's line-height to the default in order to make
an accurate height measurement, then restore it after. This fixes an
issue where elements with a high line-height get wrapped sooner than
necessary, resulting in abnormally short lines.

See issue #31.