LogView: Don't draw invisible items
This commit is contained in:
@@ -154,6 +154,7 @@ function LogView:draw()
|
||||
|
||||
local tw = style.font:get_width(datestr)
|
||||
for _, item, x, y, w, h in self:each_item() do
|
||||
if y + h >= self.position.y and y <= self.position.y + self.size.y then
|
||||
core.push_clip_rect(x, y, w, h)
|
||||
x = x + style.padding.x
|
||||
|
||||
@@ -193,6 +194,7 @@ function LogView:draw()
|
||||
|
||||
core.pop_clip_rect()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user