https://kotlinlang.org logo
#compose
Title
# compose
c

czuckie

02/23/2024, 9:16 AM
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?
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
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
s

shikasd

02/23/2024, 3:22 PM
Can you produce a repro for this bug? If so, please file an issue to https://goo.gle/compose-feedback
c

czuckie

02/26/2024, 8:16 AM
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.
2 Views