Center icons vertically in editor docs' hierarchy

This commit is contained in:
Haoyu Qiu 2022-10-06 15:42:34 +08:00 committed by Relintai
parent 4bff335622
commit 556b7564cd

View File

@ -255,7 +255,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 {