diff --git a/editor/inspector/editor_inspector.cpp b/editor/inspector/editor_inspector.cpp index 84c423c25c..07951be712 100644 --- a/editor/inspector/editor_inspector.cpp +++ b/editor/inspector/editor_inspector.cpp @@ -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);