-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMP List overflow fallback and relax some restrictions on change height #978
Conversation
height using the normal AMP flow. | ||
height using the normal AMP flow. If AMP Runtime cannot satisfy the request for new | ||
height, it will display `overflow` element when available. Notice however, the typical | ||
placement of `amp-list` elements at the bottom of the document almost always guarantees |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra space. of[space][space]amp-list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
LGTM |
this.overflowElement_.classList.toggle('amp-hidden', false); | ||
this.overflowElement_.onclick = () => { | ||
this.overflowElement_.classList.toggle('amp-hidden', true); | ||
this.changeHeight(actualHeight); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need to deferMutate
here right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, because requestChangeHeight
is already a deferMutate
:)
AMP List overflow fallback and relax some restrictions on change height
Closes #975.