Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

treeview: add horizontal scrolling #1717

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
treeview: show tooltip for entire selection
  • Loading branch information
takase1121 committed Feb 4, 2024
commit 9cb95e77e64a526e2f3360f56f8763b22b42a420
2 changes: 1 addition & 1 deletion data/plugins/treeview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function TreeView:on_mouse_moved(px, py, ...)
item_changed = true
self.hovered_item = item

x,y,w,h = self:get_text_bounding_box(item, x,y,w,h)
x = math.max(x, self.position.x)
if px > x and py > y and px <= x + w and py <= y + h then
tooltip_changed = true
self.tooltip.x, self.tooltip.y = px, py
Expand Down
Loading