third_party/subscriptions-project/swg.js
/**
   * Update padding-bottom on the containing page to not hide any content
   * behind the popup, if rendered at the bottom. For centered dialogs, there
   * should be no added padding.
   * @param {number} newHeight
   * @private
   */
Update padding-bottom on the containing page to not hide any content
behind the popup, if rendered at the bottom. For centered dialogs, there
should be no added padding.
@param {number} newHeight
@private
Update padding - bottom on the containing page to not hide any content behind the popup if rendered at the bottom . For centered dialogs there should be no added padding . @param { number } newHeight @private
updatePaddingToHtml_(newHeight) {
    if (this.shouldPositionCenter_()) {
      this.removePaddingToHtml_();
      return;
    }
    const bottomPadding = newHeight + 20; 
    const htmlElement = this.doc_.getRootElement();
    setImportantStyles$1(htmlElement, {
      'padding-bottom': `${bottomPadding}px`,
    });
  }
updatePaddingToHtml_ ( newHeight ) { if ( this . shouldPositionCenter_ ( ) ) { this . removePaddingToHtml_ ( ) ; return ; } const bottomPadding = newHeight + 20 ; const htmlElement = this . doc_ . getRootElement ( ) ; setImportantStyles$1 ( htmlElement , { 'padding-bottom' : ` ${ bottomPadding } ` , } ) ; }
Update padding-bottom on the containing page to not hide any content
 behind the popup, if rendered at the bottom.
Update padding - bottom on the containing page to not hide any content behind the popup if rendered at the bottom .
// For centered dialogs, there should be no bottom padding. // Add some extra padding.