-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Correctly display tooltips for buttons in Tree when they overlap cell content (reverted) #79792
Conversation
That doesn't really solve the problem and also introduces an ugly visual bug. If buttons that overlap text don't show their tooltips and instead the text content's tooltip is shown, then we should make sure that the elements which are visually on top contribute to the tooltip ahead of the elements which are below. See |
9308bf8
to
c39f1d8
Compare
Okay, so after looking through the logic and the suggested change I think that the solution should be to add position to the The change needs to happen in Edit: It may also help to simplify the code that checks for buttons being pressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
0838b14
to
e06cb06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost ready, but you've removed a bit too much. Make sure to test with multicolumn Trees.
I would also recommend rebasing against the current master, as your base commit is over a month old.
Edit: Oh, and please amend the commit message. The title of the PR is a good option.
e06cb06
to
b747f1f
Compare
b747f1f
to
8278a5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There are still some inconsistencies regarding buttons' position when we detect clicks, but it's a pre-existing issue that's unrelated to this. I'll take a look as a follow-up to this PR.
Thanks! |
Closes #79629
I copied the 3.x behavior for the SceneTree: once the width becomes too small, the overflowing text of the node's name is hidden.
The way I found to do this is by creating a second column in the TreeItem and adding the buttons to this column to make sure that there is no overlap. I also set the clip property of the first column to false in order to hide the overflow