From 556b7564cd2771c4f75a612578a6deb5c79e8ffd 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 a43d0a874..615d8d481 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -255,7 +255,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 {