Scroll to the real bottom

the element at the bottom might be larger than the display...

Change-Id: I52ac882b1b192f9d55c12549c82de46db025c12e
This commit is contained in:
SpiritCroc 2021-07-08 18:22:57 +02:00
parent 566feaecc1
commit b0206cbc6e

View file

@ -79,7 +79,8 @@ class ScrollOnNewMessageCallback(private val layoutManager: LinearLayoutManager,
while (newTimelineEventIds.lastOrNull() != firstNewItemIds) {
newTimelineEventIds.removeLastOrNull()
}
layoutManager.scrollToPosition(0)
//layoutManager.scrollToPosition(0)
layoutManager.scrollToPositionWithOffset(0, Integer.MAX_VALUE)
}
}
}