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

Don't force collapse on fluid slots if resize fails, as they are initiated in a collapsed state #20353

Merged
merged 1 commit into from Jan 16, 2019

Conversation

glevitzky
Copy link
Contributor

@glevitzky glevitzky commented Jan 15, 2019

In the current state of the code, we call forceCollapse on a fluid slot if resizing is rejected. This is superfluous as the slot begins in a collapsed state, and, worse, it actually causes a bug for above-the-fold multi-size slots, since resizing will always be rejected ATF, ultimately resulting in the ad loader element never disappearing.

Fixes #20152

@keithwrightbos keithwrightbos merged commit 04a6ed0 into ampproject:master Jan 16, 2019
noranazmy pushed a commit to noranazmy/amphtml that referenced this pull request Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants