Is it possible to create a grid with;
rowNum: 20,
height: “100%”
so that if grid has 10 items and a new item is added, the grid will grow by one row. repeat this till it gets to 20 rows, and then display vertical scrollbar to view 20+ items.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do this with css and a
max-heightattribute. Themax-heightneeds to be(20*rowHeight).for example, on this page run the following code in the console:
Selecting the overflow container, remove the static height, set a max height. Just change the
300to whatever height 20 rows is. I would see if you can define this in a style sheet.