Skip to content

Commit

Permalink
Undo space reservation after successful height change (ampproject#20856)
Browse files Browse the repository at this point in the history
  • Loading branch information
cathyxz authored and bramanudom committed Mar 22, 2019
1 parent a5938d0 commit c24db95
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 c24db95

Please sign in to comment.