Skip to content

Commit

Permalink
Merge pull request #93040 from dalexeev/editor-help-bit-fix-title-height
Browse files Browse the repository at this point in the history
Editor: Fix `EditorHelpBit` title height is wrong on initialization
  • Loading branch information
akien-mga committed Jun 12, 2024
2 parents 7571f82 + 7940992 commit d7302a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/editor_help.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3735,6 +3735,7 @@ EditorHelpBit::EditorHelpBit(const String &p_symbol) {

title = memnew(RichTextLabel);
title->set_theme_type_variation("EditorHelpBitTitle");
title->set_custom_minimum_size(Size2(512 * EDSCALE, 0)); // GH-93031. Set the minimum width even if `fit_content` is true.
title->set_fit_content(true);
title->set_selection_enabled(true);
//title->set_context_menu_enabled(true); // TODO: Fix opening context menu hides tooltip.
Expand Down

0 comments on commit d7302a2

Please sign in to comment.