mirror of https://github.com/godotengine/godot
Merge pull request #66056 from Rindbee/fix-EditorInspectorCategory-minimum-size-calculation
Fix `EditorInspectorCategory` minimum size calculation
This commit is contained in:
commit
a1d7404efc
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue