Center icons vertically in editor docs' hierarchy

This commit is contained in:
Haoyu Qiu 2022-10-06 15:42:34 +08:00
parent 6f153593dc
commit 90e9e7c37d

View file

@ -230,7 +230,7 @@ void EditorHelp::_add_type_icon(const String &p_type, int p_size) {
size.height *= ratio; 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 { String EditorHelp::_fix_constant(const String &p_constant) const {