ampproject / ampproject/amphtml

<amp-list> resize not Working

Open
#33,401 3 comments 0 reactions 0 assignees View on GitHub
Stale Type: Bug
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am building a site https://askmeoffers.com/

On the home page, we have a feature where users can search for merchant reviews they want

but I am not able to find a way via which I can dynamically resize amp-list data and display the rendered real-time data in a dynamically resized window.

Steps to reproduce:

1) Visit: https://askmeoffers.com/
2) Try to type amazon under ( Search Store Review field)
3) For now I have restricted results to 1 from DB query but results can be n-numbers
4) now I want to dynamically resize search result based on user query

Please guide me on how to to do this in AMP

I am attaching an image where we have to query

![EE1F48BD-2F4A-4E89-AD9C-2CF9D4F3AEB4_4_5005_c](https://user-images.githubusercontent.com/55142548/111861776-e1a89480-8976-11eb-8564-c591addfcde4.jpeg)

Sample what we used is here https://github.com/ampproject/amphtml/issues/33363

@calebcordry @niallkennedy @niallkennedy
@niallkennedy
@dmanek
@caroqliu
@nainar
@caroqliu

Please guide us and help us as its blocking our development

Thanks
Team - askmeoffers.com

Contributor guide

Open the contributing guide

Research direction

Reproduce the behavior on the askmeoffers.com home page by typing “amazon” into the Search Store Review field and inspect the amp-list behavior with multiple results. Read the related sample in issue #33363; done means the rendered search results resize dynamically to fit the returned data.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.