Skip to content

Commit 91bd80d

Browse files
committed
Merge pull request #98160 from Rindbee/change-the-parent-node-of-EditorHelpBitTooltip
Add `EditorHelpBitTooltip` as a child of `p_target` to avoid jitter
2 parents 3ded11d + bc30bb4 commit 91bd80d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/editor_help.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3868,7 +3868,7 @@ void EditorHelpBitTooltip::show_tooltip(EditorHelpBit *p_help_bit, Control *p_ta
38683868
EditorHelpBitTooltip *tooltip = memnew(EditorHelpBitTooltip(p_target));
38693869
p_help_bit->connect("request_hide", callable_mp(tooltip, &EditorHelpBitTooltip::_safe_queue_free));
38703870
tooltip->add_child(p_help_bit);
3871-
p_target->get_viewport()->add_child(tooltip);
3871+
p_target->add_child(tooltip);
38723872
p_help_bit->update_content_height();
38733873
tooltip->popup_under_cursor();
38743874
}

0 commit comments

Comments
 (0)