Skip to content

Commit

Permalink
set to always fix (ampproject#6596)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouyx authored and Vanessa Pasque committed Dec 22, 2016
1 parent b9ac337 commit a4f11c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extensions/amp-sticky-ad/1.0/amp-sticky-ad.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ class AmpStickyAd extends AMP.BaseElement {
return Promise.resolve();
}

/** @override */
isAlwaysFixed() {
return true;
}

/** @override */
unlayoutCallback() {
this.viewport_.updatePaddingBottom(0);
Expand Down

0 comments on commit a4f11c7

Please sign in to comment.