? I'm getting the following exception which seems to indicate that I need to pass in a fixed height (and indeed that fixes it) but it doesn't sound right since its height should depend on the children.
Copy code
java.lang.IllegalArgumentException: LazyHorizontalStaggeredGrid's height should be bound by parent.
does, taking up the whole height (in horizontal orientation)
We are looking into adding a way to define fixed child height and size the grid and staggered grid dynamically
j
Jorge Domínguez
10/25/2022, 3:44 PM
so I must either provide a fixed height or place the
LazyHorizontalStaggeredGrid
inside a parent with a fixed height?
s
shikasd
10/25/2022, 4:01 PM
preferably yes 🙂
k
Karthick
11/07/2022, 6:10 AM
Lazy and Recycler view to work properly height or width need to be constrained/fixed otherwise lazy/recycling functionality won’t work. I think in compose they made it stricter.