I'm probably missing something basic but I have a ...
# compose
j
I'm probably missing something basic but I have a minimal project (https://github.com/joreilly/StarWars) that shows 2 lists (using
LazyColumn
).......when I switch from say list 1 to 2 (using bottom bar or nav rail) then then 2nd list starts off at lower point and then moves up after short while. I have pretty much same code (as Android client) running in Wasm based Compose for Web client (can be seen here https://joreilly.github.io/StarWars/) and exhibits same behaviour.
z
Does
Modifier.fillMaxSize
help? Thinking that the content might be center aligned and the animation using some form of sizeTransform to animate between them.
j
Yeah, I tried that but it didn't help
z
Gotcha, and same behavior even if you put the modifier directly on both of the LazyColumns?
j
ah, good catch, thanks....I didn't have it for those but rather for outer Column.
👍🏽 1
https://joreilly.github.io/StarWars/ updated now with that change 😀
🙏🏽 1
very nice 1