Fixed IE9 issue with detecting the height of text. Related to #1101. Closes #1505.