From 90e9e7c37df7d83850062964df156d3324a24c03 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 6 Oct 2022 15:42:34 +0800 Subject: [PATCH] Center icons vertically in editor docs' hierarchy --- editor/editor_help.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index d13aeff3411..1ba7e53961f 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -230,7 +230,7 @@ void EditorHelp::_add_type_icon(const String &p_type, int p_size) { size.height *= ratio; } - class_desc->add_image(icon, size.width, size.height); + class_desc->add_image(icon, size.width, size.height, RichTextLabel::INLINE_ALIGN_CENTER); } String EditorHelp::_fix_constant(const String &p_constant) const {