diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/form/ListScrollForm.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/form/ListScrollForm.js b/ui/form/ListScrollForm.js index fe7ef0e..00a6da1 100644 --- a/ui/form/ListScrollForm.js +++ b/ui/form/ListScrollForm.js @@ -150,6 +150,11 @@ module.exports = class ListScrollForm extends Form { this.scrollItems = i } + scrollToBeginning() { + this.scrollItems = 0 + this.fixLayout() + } + scrollToEnd() { this.scrollElementIntoEndOfView(this.inputs[this.inputs.length - 1]) this.fixLayout() |