Merge pull request #117683 from YeldhamDev/propertysection_check_align_fix
Fix text alignment in check box inside `EditorInspectorSection`s
This commit is contained in:
@@ -2274,7 +2274,7 @@ void EditorInspectorSection::_notification(int p_what) {
|
||||
checkbox_position.x = label_position.x - checkbox->get_width() - 2 * EDSCALE;
|
||||
}
|
||||
checkbox_position.y = (header_height - checkbox->get_height()) / 2;
|
||||
label_position.y = light_font->get_ascent(light_font_size) + (header_height - label_size.height) / 2.0;
|
||||
label_position.y = light_font->get_ascent(light_font_size) + (header_height - light_font->get_height(light_font_size)) / 2;
|
||||
|
||||
check_rect = Rect2(checkbox_position.x, 0, checkbox->get_width() + label_size.width + 2 * EDSCALE, header_height);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user