Tree hover highlight inaccurate

Issue #329 resolved
Robert Leach created an issue

USE CASE: WHAT DO YOU WANT TO DO?

Hover over a subtree to highlight the subtree

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

Hover the cursor over the subtree shown in the attached image or generally over a leaf that is flanked by 2, 2-leaf subtrees.

CURRENT BEHAVIOR

The subtree including the currently hovered leaf is not always what is highlighted. In fact, the resulting highlighted subtree can be a ways away from where the cursor actually is.

EXPECTED BEHAVIOR

The highlighted subtree should include the leaf that the cursor is currently hovered over.

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

Change getClosestNode to search only the path from the currently hovered leaf up to the root to find which node the cursor is directly underneath.

FILES AFFECTED (where the changes will be implemented) - developers only

TRView ColumnTreeView RowTreeView Treepainter TreeDrawer

LEVEL OF EFFORT - developers only

minor

COMMENTS

I thought sure that this issue was already in the system somewhere, but I could not find it.

Note, in this screen cap, you can't see the cursor, but you can see from the red label where the cursor is over the tree and see that the tree node that is highlighted is a few branches off to the right of that.

mouse_tree_highlight_off.png

I have pretty much already resolved this issue on branch issue323...

Comments (3)

  1. Log in to comment