question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

amp-list layout issue

See original GitHub issue
<div style="display:flex">
  <amp-list layout="flex-item" src={url}>
      <template type="amp-mustache">
          .....
      </template>
  </amp-list>
</div>

This structure above does not trigger a call to the amp-list source. In the documentation it doesn’t say that there are limitation on what layout properties a list can have. What is the correct layout to use on amp-list with display: flex on the parent?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
IamAltacommented, May 12, 2019

Has this been resolved? If so, is there an example on the amp website? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

amp-list - layout "container" · Issue #21517
The issue is that the amp-list content is generated at load-time and because it can contain X products, needs to be dynamically sized....
Read more >
Documentation: <amp-list> - amp.dev
Dynamically downloads data and creates list items using a template.
Read more >
Issues with amp-list and nav-elements
First Question: amp-list can not get the height of the elements on its own (ie; height: 100%), unfortunately. You can set the initial...
Read more >
amp list dynamic height in amp for email
"AMP however was designed to be different, and AMP components and design principles make it near impossible to trigger layout shifts. This ...
Read more >
Re: The problems with AMP-Mustache only getting data ...
Ali Ghassemi · <amp-list · width · "auto" · height · "100" · layout · "fixed-height" · src ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found