What would be the idiomatic way to autoscroll a sc...
# compose
t
What would be the idiomatic way to autoscroll a scrollable when it's parent container padding change?
d
well, generally, idiomatic way is to draw UI like a function of state, instead of doing something by indirect cause
t
Of course, but unfortunately in this case this is not possible if you have a lazycolumn scrolled to the bottom and padding change in the parents, the bottom of the lazycolumn is now hidden and do not stay on screen.
d
Copy code
val state: LazyListState = rememberLazyListState()
might be helpful if you want to know if column is scrolled to bottom
but I can't get how scrolling lazycolumn is connected with parent's paddings
t
It's not that why I asked for an idiomatic way to achieve that. There's a lot's of way to do that, but all awful.