From a3df7cf7205d12ab5e6fc7b5746cae6c4a6a8214 Mon Sep 17 00:00:00 2001 From: Florrie Date: Mon, 4 Jun 2018 09:58:58 -0300 Subject: ListScrollForm.scrollToBeginning function --- ui/form/ListScrollForm.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui/form/ListScrollForm.js') 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() -- cgit 1.3.0-6-gf8a5