From faccc8e225c7b2c39ff011ecec28f32f6b3ac184 Mon Sep 17 00:00:00 2001 From: QuirkyLemon Date: Sat, 21 Oct 2023 13:29:17 -0500 Subject: [PATCH] Clamps the height of description text for property selectors --- editor/property_selector.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/property_selector.cpp b/editor/property_selector.cpp index 8c0a5b999af..87dbbd599d0 100644 --- a/editor/property_selector.cpp +++ b/editor/property_selector.cpp @@ -569,5 +569,7 @@ PropertySelector::PropertySelector() { help_bit = memnew(EditorHelpBit); vbc->add_margin_child(TTR("Description:"), help_bit); + help_bit->get_rich_text()->set_fit_content(false); + help_bit->get_rich_text()->set_custom_minimum_size(Size2(help_bit->get_rich_text()->get_minimum_size().x, 135 * EDSCALE)); help_bit->connect("request_hide", callable_mp(this, &PropertySelector::_hide_requested)); }