fix centering - add mx, my, m (auto)

This commit is contained in:
Face
2025-07-31 22:21:23 +03:00
parent e0f0a545e4
commit 49b0e357c9
5 changed files with 30 additions and 8 deletions

View File

@@ -12,13 +12,15 @@ func _resort() -> void:
if has_meta("should_fill_horizontal"):
size_flags_horizontal = Control.SIZE_FILL
else:
size_flags_horizontal = Control.SIZE_SHRINK_CENTER
if not has_meta("size_flags_set_by_style_manager"):
size_flags_horizontal = Control.SIZE_SHRINK_CENTER
# Check if we should fill vertically (for h-full)
if has_meta("should_fill_vertical"):
size_flags_vertical = Control.SIZE_FILL
else:
size_flags_vertical = Control.SIZE_SHRINK_CENTER
if not has_meta("size_flags_set_by_style_manager"):
size_flags_vertical = Control.SIZE_SHRINK_CENTER
if debug_draw:
_draw_rects.clear()