fix back after scrolling
This commit is contained in:
@@ -51,6 +51,9 @@ function choicebox:load(values, selected)
|
||||
-- clear the views first
|
||||
self:clear()
|
||||
|
||||
-- reset start index
|
||||
self._STARTINDEX = 1
|
||||
|
||||
-- load items
|
||||
local items = {}
|
||||
for idx, value in ipairs(values) do
|
||||
|
@@ -54,6 +54,9 @@ function menuconf:load(configs)
|
||||
-- clear the views first
|
||||
self:clear()
|
||||
|
||||
-- reset start index
|
||||
self._STARTINDEX = 1
|
||||
|
||||
-- detach the previous config and view
|
||||
local configs_prev = self._CONFIGS._PREV
|
||||
if configs_prev then
|
||||
|
Reference in New Issue
Block a user