hey. We have a fairly strange issue with `LazyVert...
# compose
a
hey. We have a fairly strange issue with
LazyVerticalGrid
. So we have set up using
GridCells.Fixed(100)
to emulate percentage span size for items. To enable 50%, 33%, etc on the items on a grid. What we are finding is that compose seems to think that in a two column layout (50 span each), the first cell at (50 span) is always slightly larger than the other one and there is no way seemingly to fix it. Is this a known issue?
we’re on compose 1.2.0-rc01
s
It seems like spacing eats up the size in your case, how did you setup the spacing between items?
a
there is no spacing between them. the items add their own inner padding
s
Maybe that's the cause?
E.g. if right item adds padding, the content will be smaller
a
ill put up an example with layout inspector
the spacing is consistent and matches expected. but the painted view size is different
s
Hm, I wonder if it is caused by rounding errors We probably round size of each column and it doesn't fit properly because of that Can you file a bug?
a
Sure I can file one!
s
In the meantime, you can try reducing number of spans, e.g. if you need 10% granularity, 10 spans is enough:)
a
Yeah we did that! Switched to 16, to enable 4 wide on tablet
(Since most of our use cases aren’t going to be multiple of 3 yet)