demo/bundle.js
/**
               * Throttled function that updates the top app bar scrolled values if the
               * top app bar height changes.
               * @private
               */
Throttled function that updates the top app bar scrolled values if the
top app bar height changes.
@private
Throttled function that updates the top app bar scrolled values if the top app bar height changes . @private
throttledResizeHandler_() {
                const currentHeight = this.adapter_.getTopAppBarHeight();
                if (this.topAppBarHeight_ !== currentHeight) {
                  this.wasDocked_ = false;
                  this.currentAppBarOffsetTop_ -= this.topAppBarHeight_ - currentHeight;
                  this.topAppBarHeight_ = currentHeight;
                }
                this.topAppBarScrollHandler_();
              }
throttledResizeHandler_ ( ) { const currentHeight = this . adapter_ . getTopAppBarHeight ( ) ; if ( this . topAppBarHeight_ !== currentHeight ) { this . wasDocked_ = false ; this . currentAppBarOffsetTop_ -= this . topAppBarHeight_ - currentHeight ; this . topAppBarHeight_ = currentHeight ; } this . topAppBarScrollHandler_ ( ) ; }
Throttled function that updates the top app bar scrolled values if the
 top app bar height changes.
Throttled function that updates the top app bar scrolled values if the top app bar height changes .
// Since the top app bar has a different height depending on the screen width, this // will ensure that the top app bar remains in the correct location if // completely hidden and a resize makes the top app bar a different height.