Skip to content
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

Merged
merged 1 commit into from
Nov 20, 2015

Conversation

dvoytenko
Copy link
Contributor

Closes #975.

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
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@erwinmombay
Copy link
Member

LGTM

this.overflowElement_.classList.toggle('amp-hidden', false);
this.overflowElement_.onclick = () => {
this.overflowElement_.classList.toggle('amp-hidden', true);
this.changeHeight(actualHeight);
Copy link
Member

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?

Copy link
Contributor Author

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 :)

dvoytenko added a commit that referenced this pull request Nov 20, 2015
AMP List overflow fallback and relax some restrictions on change height
@dvoytenko dvoytenko merged commit db76a6f into ampproject:master Nov 20, 2015
@dvoytenko dvoytenko deleted the list2 branch November 20, 2015 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants