only realign out-of-alignment list positions

develop
Myk Taylor 2023-02-07 14:12:52 -08:00
parent b2ecb8aaab
commit ef81a91181
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 3 additions and 1 deletions

@ -1638,7 +1638,9 @@ end
function List:postComputeFrame(body)
self.page_size = math.max(1, math.floor(body.height / self.row_height))
self.page_top = math.max(1, math.min(#self.choices - self.page_size + 1))
if #self.choices - self.page_size < 0 then
self.page_top = 1
end
update_list_scrollbar(self)
end