src/components/autocomplete/js/autocompleteController.js
function getVerticalOffset () {
      var offset = 0;
      var inputContainer = $element.find('md-input-container');
      if (inputContainer.length) {
        var input = inputContainer.find('input');
        offset = inputContainer.prop('offsetHeight');
        offset -= input.prop('offsetTop');
        offset -= input.prop('offsetHeight');
        // add in the height left up top for the floating label text
        offset += inputContainer.prop('offsetTop');
      }
      return offset;
    }
function getVerticalOffset () {
      var offset = 0;
      var inputContainer = $element.find('md-input-container');
      if (inputContainer.length) {
        var input = inputContainer.find('input');
        offset = inputContainer.prop('offsetHeight');
        offset -= input.prop('offsetTop');
        offset -= input.prop('offsetHeight');
        // add in the height left up top for the floating label text
        offset += inputContainer.prop('offsetTop');
      }
      return offset;
    }
function getVerticalOffset ( ) { var offset = 0 ; var inputContainer = $element . find ( 'md-input-container' ) ; if ( inputContainer . length ) { var input = inputContainer . find ( 'input' ) ; offset = inputContainer . prop ( 'offsetHeight' ) ; offset -= input . prop ( 'offsetTop' ) ; offset -= input . prop ( 'offsetHeight' ) ; // add in the height left up top for the floating label text offset += inputContainer . prop ( 'offsetTop' ) ; } return offset ; }
Calculates the vertical offset for floating label examples to account for ngMessages
@returns {number}
Calculates the vertical offset for floating label examples to account for ngMessages