Ensure maxHeight is an integer

If the height is pulled from the element's CSS, it's a string and thus doesn't add properly (i.e. 300 + 16 = 30016). Using parseInt to ensure it's a number.