scroll to bottom when loading timeline

This commit is contained in:
Bruno Windels 2019-06-16 16:39:20 +02:00
parent a1c23f715a
commit 2131329442

View File

@ -16,6 +16,12 @@ export default class TimelineList extends ListView {
this._atBottom = false;
}
_loadList() {
super._loadList();
const root = this.root();
root.scrollTop = root.scrollHeight;
}
onBeforeListChanged() {
const root = this.root();
const fromBottom = root.scrollHeight - root.scrollTop - root.clientHeight;