Fix identity dialog layout reparenting (#130)

This commit is contained in:
Alexander Sellite 2026-09-02 09:51:46 -04:00
parent 0e42137552
commit 44ccd1da75
4 changed files with 139 additions and 1 deletions

View file

@ -230,7 +230,19 @@ func _move_data_management_dialog_to_host(dialog_host: Control) -> void:
or _data_management_dialog.get_parent() == dialog_host
):
return
_data_management_dialog.reparent(dialog_host)
# The overlay is first added below SettingsPanel so it can finish _ready().
# Do not preserve that temporary parent's transform when moving it onto the
# canonical title/pause stage: doing so leaves the full-rect anchors paired
# with the settings panel's offset and makes the first presentation differ
# from later container layout passes.
_data_management_dialog.reparent(dialog_host, false)
_data_management_dialog.set_anchors_and_offsets_preset(
Control.PRESET_FULL_RECT
)
_data_management_dialog.position = Vector2.ZERO
_data_management_dialog.scale = Vector2.ONE
_data_management_dialog.rotation = 0.0
_data_management_dialog.pivot_offset = Vector2.ZERO
func _populate_option_buttons() -> void: