Skip to content

Commit

Permalink
Undo space reservation after successful height change (#20856)
Browse files Browse the repository at this point in the history
  • Loading branch information
cathyxz authored Feb 14, 2019
1 parent ccea3e2 commit e9acbd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/amp-list/0.1/amp-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,13 @@ export class AmpList extends AMP.BaseElement {
if (this.element.getAttribute('load-more') === 'auto') {
this.maybeLoadMoreItems_();
}
setStyles(dev().assertElement(this.container_), {
'max-height': '',
});
})
.catch(() => {
this.resizeFailed_ = true;
this.adjustContainerForLoadMoreButton_();
});
}
}
Expand Down

0 comments on commit e9acbd2

Please sign in to comment.