Don't draw treeview tooltip if its position is not defined
This commit is contained in:
@@ -422,7 +422,7 @@ function TreeView:draw()
|
|||||||
end
|
end
|
||||||
|
|
||||||
self:draw_scrollbar()
|
self:draw_scrollbar()
|
||||||
if self.hovered_item and self.tooltip.alpha > 0 and self.draw_tooltip.x then
|
if self.hovered_item and self.tooltip.x and self.tooltip.alpha > 0 then
|
||||||
core.root_view:defer_draw(self.draw_tooltip, self)
|
core.root_view:defer_draw(self.draw_tooltip, self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user