Skip to content

Commit

Permalink
Merge pull request #66970 from timothyqiu/image-vcenter
Browse files Browse the repository at this point in the history
[3.x] Center icons vertically in editor docs' hierarchy
  • Loading branch information
akien-mga committed Oct 6, 2022
2 parents f93051a + 90e9e7c commit f329455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/editor_help.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f329455

Please sign in to comment.