Im trying to achieve effect similar to `_LazyColum...
# compose-web
b
Im trying to achieve effect similar to
_LazyColumn(reverseLayout_ = true)
using `compose.html` . I have no idea how to scroll my
div
to bottom after new elements appears in state. Anyone know?
o
b
The most mystic part was "how to do that after new elements were added" 😛 I did something like this:
Copy code
Div {
	items.forEach { item ->
        DisplayItem(item)
	}
	DisposableEffect(items) {
		this.scopeElement.scrollTo(ScrollToOptions(left = 0.0, top = this.scopeElement.scrollHeight.toDouble()))
		onDispose { }
	}
}