code: function getMaxLines(height) {
          var availHeight = height || element.clientHeight,
            lineHeight = getLineHeight(element);
  
          return Math.max(Math.floor(availHeight / lineHeight), 0);
        }
docs: Returns the maximum number of lines of text that should be rendered based
  on the current height of the element and the line-height of the text.