From 4cfcc8b338b0db75e4acc8af461c0dae2d14bf09 Mon Sep 17 00:00:00 2001 From: Erik Date: Sat, 8 Aug 2026 17:49:24 +0200 Subject: [PATCH] =?UTF-8?q?fix(ui):=20#353=20=E2=80=94=20the=20stack-count?= =?UTF-8?q?=20entry=20takes=20the=20one-line=20draw=20path;=20RightAligned?= =?UTF-8?q?=20engages=20and=20the=20edit=20flicker=20dies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RightAligned only applies on UiField's single-line renderer; the entry was falling into the multi-line path (ignoring the alignment AND re-scrolling its extents per keystroke — the reported edit flicker). A 14 px numeric entry is single-line by construction; OneLine = true routes it correctly. The 233 now sits flush against the slider per the authored HJustify=2. Co-Authored-By: Claude Fable 5 --- src/AcDream.App/UI/Layout/SelectedObjectController.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/AcDream.App/UI/Layout/SelectedObjectController.cs b/src/AcDream.App/UI/Layout/SelectedObjectController.cs index 1155f916..7076e794 100644 --- a/src/AcDream.App/UI/Layout/SelectedObjectController.cs +++ b/src/AcDream.App/UI/Layout/SelectedObjectController.cs @@ -180,6 +180,12 @@ public sealed class SelectedObjectController : IRetainedPanelController // flush against the slider at X=50 on the same row — the count // reads right-adjacent to the bar, retail's look. UiField // already supports it; the importer does not carry HJustify. + // OneLine is REQUIRED for the alignment: RightAligned only + // applies on the single-line draw path, and the multi-line + // path's per-keystroke scroll-extent churn was also the edit + // flicker the user reported. A 14 px numeric entry is + // single-line by construction. + _stackSizeEntry.OneLine = true; _stackSizeEntry.RightAligned = true; _stackSizeEntry.Selectable = true; _stackSizeEntry.ClearOnSubmit = false;