Fixed setting max height for getting text height.