From 794099217e62b1e4d67c2cac32cad856342f5ce1 Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Tue, 11 Jun 2024 18:55:33 +0300 Subject: [PATCH] Editor: Fix `EditorHelpBit` title height is wrong on initialization --- editor/editor_help.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index ec064a92d74..3dc8584096c 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -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.