-
-
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
Scaling RichTextLabel does not update hint tooltip text popup location #91984
Comments
MewPurPur
pushed a commit
to MewPurPur/godot
that referenced
this issue
Jul 11, 2024
Viewport used get_global_transform().xform_inv(mpos) to convert the mouse position to the control's local coordinates when getting the control's tooltip, which does not handle scale correctly. This impacted tooltips for any controls that depended on the position to determine what tooltip to show, including RichTextLabel, ItemList, Tree, and probably some others. This change is for Viewport to use get_global_transform_with_canvas().affine_inverse().xform(mpos) for tooltips instead, to match what we do for Viewport::_gui_call_input. Fixes godotengine#91984
sorascode
pushed a commit
to sorascode/godot-soras-version
that referenced
this issue
Jul 22, 2024
Viewport used get_global_transform().xform_inv(mpos) to convert the mouse position to the control's local coordinates when getting the control's tooltip, which does not handle scale correctly. This impacted tooltips for any controls that depended on the position to determine what tooltip to show, including RichTextLabel, ItemList, Tree, and probably some others. This change is for Viewport to use get_global_transform_with_canvas().affine_inverse().xform(mpos) for tooltips instead, to match what we do for Viewport::_gui_call_input. Fixes godotengine#91984
2nafish117
pushed a commit
to 2nafish117/godot
that referenced
this issue
Aug 5, 2024
Viewport used get_global_transform().xform_inv(mpos) to convert the mouse position to the control's local coordinates when getting the control's tooltip, which does not handle scale correctly. This impacted tooltips for any controls that depended on the position to determine what tooltip to show, including RichTextLabel, ItemList, Tree, and probably some others. This change is for Viewport to use get_global_transform_with_canvas().affine_inverse().xform(mpos) for tooltips instead, to match what we do for Viewport::_gui_call_input. Fixes godotengine#91984
chryan
pushed a commit
to chryan/godot
that referenced
this issue
Aug 6, 2024
Viewport used get_global_transform().xform_inv(mpos) to convert the mouse position to the control's local coordinates when getting the control's tooltip, which does not handle scale correctly. This impacted tooltips for any controls that depended on the position to determine what tooltip to show, including RichTextLabel, ItemList, Tree, and probably some others. This change is for Viewport to use get_global_transform_with_canvas().affine_inverse().xform(mpos) for tooltips instead, to match what we do for Viewport::_gui_call_input. Fixes godotengine#91984
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested versions
Found in v4.2.stable.mono.official [46dc277], tested in v4.3-dev6.mono.official and found similar issue, tested in v4.1.4.stable.mono.official and found similar issue.
System information
Windows 11 - v4.2.stable.mono.official - OpenGL API 3.3.0 Core Profile Context 24.1.1.240110 - Compatibility - Using Device: ATI Technologies Inc. - AMD Radeon RX 6950 XT
Issue description
When I change the scale of a control node with a rich text label in it, the tooltip popup location of the text with the hint doesn't seem to move with the now scaled text position and size. If I change the font size, the hint popup location moves, it seems to just be an issue with the scale feature of control nodes.
Steps to reproduce
Minimal reproduction project (MRP)
RichTextLabelHintTestZip.zip
The text was updated successfully, but these errors were encountered: