ng-clamp.js
function getMaxLines(height) {
        var availHeight = height || element.clientHeight,
          lineHeight = getLineHeight(element);

        return Math.max(Math.floor(availHeight / lineHeight), 0);
      }
function getMaxLines(height) {
        var availHeight = height || element.clientHeight,
          lineHeight = getLineHeight(element);

        return Math.max(Math.floor(availHeight / lineHeight), 0);
      }
function getMaxLines ( height ) { var availHeight = height || element . clientHeight , lineHeight = getLineHeight ( element ) ; return Math . max ( Math . floor ( availHeight / lineHeight ) , 0 ) ; }
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.
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 .