-
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
Fix amp-image won't render after resize in amp-fx-flying-carpet with media attribute #16809
Conversation
Codecov Report
@@ Coverage Diff @@
## master #16809 +/- ##
==========================================
- Coverage 78.09% 78.02% -0.08%
==========================================
Files 558 558
Lines 40437 40438 +1
==========================================
- Hits 31578 31550 -28
- Misses 8859 8888 +29
Continue to review full report at Codecov.
|
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.
ezpz!
setStyle(this.container_, 'width', width, 'px'); | ||
}); | ||
this.scheduleLayout(dev().assertElement(this.container_)); |
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.
This needs to be reverted. It can only schedule layout for the container if it itself has been laid out.
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.
Can onMeasureChanged
get called before layout
?
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.
It can be called after build.
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.
Revert PR: #16816
…media attribute (ampproject#16809) * Add flying carpet media test * Schedule layout of flying carpet container on onMeasureChanged * Add unit test * Assert element tand force non null
Closes #11621