-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
Highlight adorner not outlining everything #97
Comments
I've since reverted back to a previous version as I'd rather have it highlight too much than not enough. |
I was encountering a bug that's already been fixed (the context menu was locking out most of the controls after it had been closed under certain conditions), so I downloaded the source and fixed the above issue for myself. Replace the line "if (rect.IsEmpty)" with "if (tvItem.IsExpanded)" and I was able to get the expected result. |
@claudekennilol you can make a pr to solve this for me and all other. :-D |
I just realized it needs a bit more work than what I pointed out above. If the tree is more than two elements deep.. For example, if I have root -> branch -> leaf and expand all three, but then collapse only the leaf, then that gives me the previous behavior where if I highlight the root that is expanded then it highlights too much. So I'll take a look into it and see if I can figure out a solution that works in all cases. |
Ok, pull request submitted. |
Upgrading from 1.3 to current is changing the behavior to outline only the root element and not its children. I know in 1.3 it was broken so that it would highlight any space that tree item had taken up (as in it highlighted too much if the item was expanded then collapsed then highlighted).
Insight on if this is the expected behavior would be appreciated.
from DropTargetHighlightAdorner there is this. It looks like the problem is that rect is never empty so it never uses the height that I'm seeing on the screen.
The text was updated successfully, but these errors were encountered: