Added scroll bounds

Resolves #9
Resolves #6
Resolves #3
This commit is contained in:
rxi committed 2020-05-02 00:21:04 +01:00
1 parent 28cdd3cabe
commit 9fc185af2f
5 files changed
+10 -8

No files matched your search

-2
View File
@@ -102,7 +102,6 @@ end
function ResultsView:update()
self.scroll.to.y = math.max(0, self.scroll.to.y)
ResultsView.super.update(self)
end
@@ -118,7 +117,6 @@ end
function ResultsView:get_scrollable_size()
local rh = style.padding.y + style.font:get_height()
return self:get_results_yoffset() + #self.results * self:get_line_height()
end