Skip to content

Commit

Permalink
Merge pull request godotengine#98160 from Rindbee/change-the-parent-n…
Browse files Browse the repository at this point in the history
…ode-of-EditorHelpBitTooltip

Add `EditorHelpBitTooltip` as a child of `p_target` to avoid jitter
  • Loading branch information
Repiteo committed Nov 18, 2024
2 parents 3ded11d + bc30bb4 commit 91bd80d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/editor_help.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3868,7 +3868,7 @@ void EditorHelpBitTooltip::show_tooltip(EditorHelpBit *p_help_bit, Control *p_ta
EditorHelpBitTooltip *tooltip = memnew(EditorHelpBitTooltip(p_target));
p_help_bit->connect("request_hide", callable_mp(tooltip, &EditorHelpBitTooltip::_safe_queue_free));
tooltip->add_child(p_help_bit);
p_target->get_viewport()->add_child(tooltip);
p_target->add_child(tooltip);
p_help_bit->update_content_height();
tooltip->popup_under_cursor();
}
Expand Down

0 comments on commit 91bd80d

Please sign in to comment.