From b83766c92658228e3fb695ffd61b97461216780f Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 9 Dec 2017 17:23:36 -0400 Subject: Make firstInput reset scrollItems in ListScrollForm --- ui/form/ListScrollForm.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ui') diff --git a/ui/form/ListScrollForm.js b/ui/form/ListScrollForm.js index 7d2b083..daa640a 100644 --- a/ui/form/ListScrollForm.js +++ b/ui/form/ListScrollForm.js @@ -106,6 +106,12 @@ module.exports = class ListScrollForm extends Form { this.fixLayout() } + firstInput() { + this.scrollItems = 0 + + super.firstInput() + } + getItemPos(item) { // Gets the position of the item in an unscrolled view. -- cgit 1.3.0-6-gf8a5