diff options
author | Florrie <towerofnix@gmail.com> | 2017-12-09 17:23:36 -0400 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2017-12-09 17:23:36 -0400 |
commit | b83766c92658228e3fb695ffd61b97461216780f (patch) | |
tree | 9a2aa14e6bce7147cc006ddb0e4fb27e27cf6a76 | |
parent | a800730b9d8d098214f76860422e437514adf35f (diff) |
Make firstInput reset scrollItems in ListScrollForm
-rw-r--r-- | ui/form/ListScrollForm.js | 6 |
1 files changed, 6 insertions, 0 deletions
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. |