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
[Master feature] Improved resizing rules for amp-list #14073
Comments
This issue doesn't have a category which makes it harder for us to keep track of it. @ericlindley-g Please add an appropriate category. |
can you add a "windowWIDTH" variable which can be used for calculation in amp-list expression |
@dulgar Could you share an example of how you'd like to use this "windowWIDTH" variable? /cc @cathyxz and @aghassemi for visibility |
@ericlindley-g @cathyxz @aghassemi <amp-list [height]="300 * products.length" > If the width of the page is responsive, I do not know how many product will be listed in a row. <amp-list [height]="300 * (product.length / (windowWIDTH / 200) )" > my prodcut boxed are fixed width=200 height=300 thanks |
Interesting — adding @choumx for thoughts on exposing something like the windowWIDTH variable you propose. Would this be easy to do? Any tradeoffs aside from the effort to implement? |
I don't think that's the right approach -- you probably want to use CSS flexbox combined with this new resizing feature. |
This issue hasn't been updated in awhile. @aghassemi Do you have any updates? |
launched |
This issue captures the work needed to address a number of related amp-list resizing issues.
The text was updated successfully, but these errors were encountered: