summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-12 11:01:08 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-12 11:01:08 +0200
commitd7302a233bd539e2678fff8dc4a9d571498ca7cd (patch)
tree021c3e0f25a9e94ec63882b7c8af3a8e0f31b675 /editor
parent7571f82bea1f32ffae9d99474f36758f84249eb8 (diff)
parent794099217e62b1e4d67c2cac32cad856342f5ce1 (diff)
downloadredot-engine-d7302a233bd539e2678fff8dc4a9d571498ca7cd.tar.gz
Merge pull request #93040 from dalexeev/editor-help-bit-fix-title-height
Editor: Fix `EditorHelpBit` title height is wrong on initialization
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_help.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp
index ec064a92d7..3dc8584096 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.