-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
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
gridcontainer hint/tooltip disturb the layout #46976
Comments
@astrale-sharp Please upload a minimal reproduction project to make this easier to troubleshoot. |
On further investigation: Lines 1579 to 1587 in 942f5f0
I assume this may be caused due to the TooltipPanel being parented to the GridContainer (and HBoxContainer). The HBoxContainer _resort() function is very different to the grid_container one, tho I would fail to see where this may cause an issue, but i'm just a godot programmer rookie, so maybe the seniors may know a bit more. But just by the look of it, wouldn't it make more sense to parent the tooltip to the scene_root instead of the "tooltip owner"? Because I assume that this may be the main issue of this, as the aforementioned parenting happens directly on the node tree (if you investigate via the Remote tab in Godot): (HBoxContainer, works) (GridContainer, explodes) |
This is fixed in 4.0, but the fix can't be backported (because it happened with DisplayServer rewrite). |
Damn i finished my minimal reproduction project before reading this was fixed ~~ If this is fixed, i guess we can close the issue |
To solve this in 3.x, shouldn't tooltips be added high up in the scene tree? |
Yeah, we could add them directly under viewport. But maybe there was a reason why it wasn't done in the first place. |
Godot version:
3.2.3.stable
OS/device including version:
Issue description:
Hi!
When you're using a GridContainer with some hint you get a jittery result like that :
When you're using a HBoxcontainer with some tooltip you get a nice message on top that doesn't disturb the alignment like this:
Steps to reproduce:
add a GridContainer with some tool tip to a scene.
The text was updated successfully, but these errors were encountered: