packages/basic-autosize-textarea/src/AutosizeTextarea.js
function setMinimumHeight(element) {
  const copyContainer = element.$.copyContainer;
  const outerHeight = copyContainer.getBoundingClientRect().height;
  const style = getComputedStyle(copyContainer);
  const paddingTop = parseFloat(style.paddingTop);
  const paddingBottom = parseFloat(style.paddingBottom);
  const innerHeight = copyContainer.clientHeight - paddingTop - paddingBottom;
  const bordersPlusPadding = outerHeight - innerHeight;
  let minHeight = (element.minimumRows * element[lineHeightSymbol]) + bordersPlusPadding;
  minHeight = Math.ceil(minHeight);
  copyContainer.style.minHeight = minHeight + 'px';
}
function setMinimumHeight(element) {
  const copyContainer = element.$.copyContainer;
  const outerHeight = copyContainer.getBoundingClientRect().height;
  const style = getComputedStyle(copyContainer);
  const paddingTop = parseFloat(style.paddingTop);
  const paddingBottom = parseFloat(style.paddingBottom);
  const innerHeight = copyContainer.clientHeight - paddingTop - paddingBottom;
  const bordersPlusPadding = outerHeight - innerHeight;
  let minHeight = (element.minimumRows * element[lineHeightSymbol]) + bordersPlusPadding;
  minHeight = Math.ceil(minHeight);
  copyContainer.style.minHeight = minHeight + 'px';
}
function setMinimumHeight ( element ) { const copyContainer = element . $ . copyContainer ; const outerHeight = copyContainer . getBoundingClientRect ( ) . height ; const style = getComputedStyle ( copyContainer ) ; const paddingTop = parseFloat ( style . paddingTop ) ; const paddingBottom = parseFloat ( style . paddingBottom ) ; const innerHeight = copyContainer . clientHeight - paddingTop - paddingBottom ; const bordersPlusPadding = outerHeight - innerHeight ; let minHeight = ( element . minimumRows * element [ lineHeightSymbol ] ) + bordersPlusPadding ; minHeight = Math . ceil ( minHeight ) ; copyContainer . style . minHeight = minHeight + 'px' ; }
Setting the minimumRows attribute translates into setting the minimum height on the text copy container.
Setting the minimumRows attribute translates into setting the minimum height on the text copy container .