fix(ui): complete retail inventory scroll polish
Preserve pixel scroll offsets across inventory rebuilds, crop partially visible rows with nested geometry/UV clips, and replace the obsolete 560px resize ceiling with available screen height. Keep retail's row-sized wheel step while allowing continuous scrollbar thumb positions. Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
parent
ea72c395c9
commit
15aa3b9aff
15 changed files with 379 additions and 34 deletions
|
|
@ -147,7 +147,8 @@ public sealed class RetailWindowFrameTests
|
|||
grid.LayoutCells();
|
||||
|
||||
Assert.Equal(251f, grid.Height);
|
||||
Assert.Equal(42, grid.Children.Count(child => child.Visible));
|
||||
Assert.Equal(48, grid.Children.Count(child => child.Visible));
|
||||
Assert.Equal(224f, grid.GetItem(42)!.Top); // final row intersects 251px view by 27px
|
||||
}
|
||||
|
||||
private static void ApplyAnchors(UiElement parent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue