Skip to content

Commit bc30bb4

Browse files
committed
Add EditorHelpBitTooltip as a child of p_target to avoid jitter
Previously the tooltip popup was added as a child of the `p_target`'s viewport (usually the root window), which caused the root window to recalculate the window size, that could cause jitter issues on i3wm if the actual width of the root window was less than `1024`.
1 parent 92e51fc commit bc30bb4

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)