diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-21 15:36:55 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-21 15:36:55 +0200 |
commit | a1d7404efcdd48b49966446d67da35ff9e63744d (patch) | |
tree | 3f749704a6512ffbb06e41f6f8e021a2acaebd73 | |
parent | dd3f3f6717816903e3a1018eb35e3c5123d2610a (diff) | |
parent | e9465825cd5e65d2a553ec759e456d996e82b5c1 (diff) |
Merge pull request #66056 from Rindbee/fix-EditorInspectorCategory-minimum-size-calculation
Fix `EditorInspectorCategory` minimum size calculation
-rw-r--r-- | editor/editor_inspector.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index e786461722..5de205153d 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -1143,11 +1143,10 @@ Control *EditorInspectorCategory::make_custom_tooltip(const String &p_text) cons } Size2 EditorInspectorCategory::get_minimum_size() const { - Ref<Font> font = get_theme_font(SNAME("font"), SNAME("Tree")); - int font_size = get_theme_font_size(SNAME("font_size"), SNAME("Tree")); + Ref<Font> font = get_theme_font(SNAME("bold"), SNAME("EditorFonts")); + int font_size = get_theme_font_size(SNAME("bold_size"), SNAME("EditorFonts")); Size2 ms; - ms.width = 1; ms.height = font->get_height(font_size); if (icon.is_valid()) { ms.height = MAX(icon->get_height(), ms.height); |