packages/mdc-top-app-bar/standard/foundation.js
/**
   * Function to move the top app bar if needed.
   * @private
   */
Function to move the top app bar if needed.
@private
Function to move the top app bar if needed . @private
moveTopAppBar_() {
    if (this.checkForUpdate_()) {
      let offset = this.currentAppBarOffsetTop_;
      if (Math.abs(offset) >= this.topAppBarHeight_) {
        offset = -numbers.MAX_TOP_APP_BAR_HEIGHT;
      }
      this.adapter_.setStyle('top', offset + 'px');
    }
  }
moveTopAppBar_ ( ) { if ( this . checkForUpdate_ ( ) ) { let offset = this . currentAppBarOffsetTop_ ; if ( Math . abs ( offset ) >= this . topAppBarHeight_ ) { offset = - numbers . MAX_TOP_APP_BAR_HEIGHT ; } this . adapter_ . setStyle ( 'top' , offset + 'px' ) ; } }
Function to move the top app bar if needed.
Function to move the top app bar if needed .
// Once the top app bar is fully hidden we use the max potential top app bar height as our offset // so the top app bar doesn't show if the window resizes and the new height > the old height.