From 2a74e99f91df33f665d6edf83351557663fd1916 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Fri, 20 Mar 2026 14:10:26 -0300 Subject: [PATCH] Fix text alignment in check box inside `EditorInspectorSection`s --- editor/inspector/editor_inspector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/inspector/editor_inspector.cpp b/editor/inspector/editor_inspector.cpp index b59c20111c..78c405ea4f 100644 --- a/editor/inspector/editor_inspector.cpp +++ b/editor/inspector/editor_inspector.cpp @@ -2279,7 +2279,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);