amp-list doesn't fetch when layout="fill" is specified
#What's the issue?
amp-list doesn't fetch when layout="fill" is specified
How do we reproduce the issue?
Adding layout="fill" on an amp-list component
This was first reported on Aug 3/2020. Currently can be seen live (https://m.madsister.co.kr/amp/index.html) --> but this link may not last (may be fixed using other/no layout)
Working (not layout=fill)

Not Working (layout=fill)

Network activity shows no fetch performed
Parent element size does not seem to affect this behavior
Added @samouri since this appears to be related to the recent move to IntersectionObserver within Resources.
Can we confirm the fix you landed also covers this case?
I just verified locally that amp-list[layout=fill] hit the same IO bug and that https://github.com/ampproject/amphtml/pull/30167 fixes it.
Note that Just switching the layout type from fixed-height to fill is not expected to work in the playground. layout=fill requires a parent that is positioned either relative or absolute.
Appreciate investigating this so quickly, all.
Couple of quick questions:
When is this expected to be in the wild?
Also: do we need better documentation around AMP layouts? The only thing linked to each component is this: https://amp.dev/documentation/guides-and-tutorials/learn/amp-html-layout/layouts_demonstrated/?format=websites#fill .. doesnt capture the nuance above which would be useful (with samples).
On Fri, Sep 11, 2020, 11:48 PM Jake Fried [email protected] wrote:
I just verified locally that amp-list[layout=fill] hit the same IO bug and that #30167 https://github.com/ampproject/amphtml/pull/30167 fixes it.
Note that Just switching the layout type from fixed-height to fill is not expected to work in the playground. layout=fill https://amp.dev/documentation/guides-and-tutorials/learn/amp-html-layout/ requires a parent that is positioned either relative or absolute.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ampproject/amphtml/issues/30194#issuecomment-691140273, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOO7VIP5P4N37VRUFQ5HZLSFI2ENANCNFSM4RGK4N7A .
Also: do we need better documentation around AMP layouts? The only thing linked to each component is this:
There is also a more detailed overview of the layout system that goes into depth with how to use each layout type. It would probably be good to link to it from the layouts_demonstrated page.
When is this expected to be in the wild?
The fixes to stable/lts should be going out within the next 24-48 hours
Looks like the fix has been pushed out and is working - thanks.
Unfortunately, it looks like the bug was pushed out to LTS? This was working previously and now unfortunately the LTS version is experiencing the same behavior as explained above.
The original URL - https://m.madsister.co.kr/amp/index.html - had migrated to LTS and experienced the same issue (resolved in the same way as above by removing layout=fill and adding a required height attribute) - now reverted back to the regular release to resolve again.
@maranag: The bug was pushed out to LTS on 8-29. We are making sure the fix behaves well on stable before pushing it out to LTS. You can track progress here: https://github.com/ampproject/amphtml/issues/30320
Fix should be in both LTS and stable. Closing, but please comment again if you are still able to reproduce the error!