I recently upgraded a project from compose 1.2.0 to the latest stable version in the 2024.02.00 BOM and when I scroll to the bottom of lazy columns in a modal bottom sheet, the scroll snaps back like 100 pixels.
Does anyone have experience of this issue?
czuckie
02/23/2024, 9:21 AM
Happens with 2022.10.00 also.
I guess other noteworthy changes:
Compile sdk 33 › 34
Kotlin 1.7.0 › 1.9.0
Compose compiler 1.2.0 › 1.5.2
AGP 7.3 › 8.2.2
czuckie
02/23/2024, 10:24 AM
I can "fix" the issue by adding padding to the bottom of the list, and, my favourite, by simply referencing the
firstVisibleItemScrollOffset
.
The layout inspector seems to show a different outline on elements inside the lazy column compared to what is eventually rendered
Been desperately trying to, annoyingly, there is a whole heap of proprietary stack in the way and as much as I try to simulate it, I seem to not be able to.
I think the core of it is that the available space appears to be taking into account the entire screen, although there is a bottom tab bar.
If I manually set the height of the lazy column the issue goes away, but of course it doesn't fill the entire space it should.