Closed CurrentIndex closed 1 year ago
Thank you for your detailed issue! I reproduced your issue, but I need some time to think about how it might be solved for the best way. The reason is how the allocation algorithm works. Just to clarify what happened:
21
(1080/50=21,6 -> 21
)30
reminded pixels (1080-21x50=30
)That means first 20
cells will have 21
pixels width, other 30
will have 22
pixels width, in sum 21x20+22x30=420+660=1080
What we see in your sample: because a big merged regions was used it affects on final size: [21x5][21x5][21x5][21x5][22x5][22x5][22x5][22x5][22x5][22x5]=[105][105][105][105][110][110][110][110][110][110] (a little bit different because you have padding in your sample)
Honestly, this case was out of my sight, thank you again to highlight this problem. I'll try to solve it shortly but without any specific date.
Thank you for your reply and your excellent work.
Thank you for your reply and your excellent work.
Check please fix on 1.1.2 and reopen the issue if the bug still be there.
code:
result:
screenSize:
2400
#1080
The larger the columnCount, the more items, the greater the error.