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
:bug IFrame placeholder assertion fix #19786
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
Thanks @acsant, really appreciate the initiative, we love contributions in AMP. I assume this is for #19705 (comment) ? I like to dig a bit deeper on the root cause of this. The properties you are setting in Are you by any chance using It would be great if you can test your page with Dev Channel enabled and let me know if issue is still there. |
@aghassemi We are using |
@eveyiyuan Awesome! Thanks for confirming. That fix will be in production next Tuesday Dec 18. |
@acsant @eveyiyuan Unrelated to this thread but since you are heavily using amp-lightbox-gallery, I wanted to mention that we have been working on making "swipe to dismiss" interaction much more smooth and native-looking recently. It will launch soon but if you like to take a look and give us feedback, you can see it here: https://amp-polish.firebaseapp.com/examples/article-with-lightbox-2.0-gallery.amp.html (on mobile, use swipe up/down gesture on lightboxed images to close the lightbox) |
Closing per discussions above. |
Instructions:
layoutCallback
updateLayoutBox
in custom-element causes thelayoutCallback
on the amp-iframe, howeverthis.placeholder_
is null - the context here seems to be different compared to when the IFrame was first rendered and the firstlayoutCallback
was executed.this.assertPosition
above fails becausethis.placeholder_
is nullAfter adding the calls to
this.getPlaceholder()
onlayoutCallback
: