From 51f1af8786452797530c03f64dd93f8ccce75bc5 Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Sun, 19 Jul 2026 17:43:58 +0200 Subject: [PATCH] fix(ui): stop wizard/overlay TextBoxes from resizing on focus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Width-capped containers (wizard steps, private-key prompt, wallet info overlay) used HorizontalAlignment="Center" with MaxWidth, which sizes the panel from its content's DesiredSize. Since PlaceholderText only contributes to that measurement while a TextBox is empty and unfocused, clicking into an empty field shrank the whole panel. Switch to HorizontalAlignment="Stretch": Avalonia's ArrangeCore sizes Stretch from the available arrange rect (clamped by MaxWidth) instead of DesiredSize, and centers the result exactly like Center alignment does when MaxWidth caps it — so the box stays a fixed width regardless of focus/placeholder state, on both desktop and Android. --- src/App/Views/MainView.axaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App/Views/MainView.axaml b/src/App/Views/MainView.axaml index bdd815b..c5d5c51 100644 --- a/src/App/Views/MainView.axaml +++ b/src/App/Views/MainView.axaml @@ -60,7 +60,7 @@ + HorizontalAlignment="Stretch"> @@ -1044,7 +1044,7 @@ + HorizontalAlignment="Stretch" VerticalAlignment="Center"> @@ -1385,7 +1385,7 @@ + HorizontalAlignment="Stretch" VerticalAlignment="Center">