Add axis-aware scroll constraints and per-mount limits
Verify Tessera GUI / verify (push) Failing after 7m38s

This commit is contained in:
2026-10-22 19:35:38 +08:00
parent 2b20976658
commit 1885693f7c
13 changed files with 277 additions and 14 deletions
+4 -1
View File
@@ -124,6 +124,7 @@ impl UiNode {
(UiKind::Spacer(a), UiKind::Spacer(b)) => a == b,
(
UiKind::Scroll {
axis: aa,
width: a,
height: b,
padding: pa,
@@ -131,13 +132,14 @@ impl UiNode {
children: _,
},
UiKind::Scroll {
axis: ab,
width: c,
height: d,
padding: pb,
gap: gb,
children: _,
},
) => a == c && b == d && pa == pb && ga == gb && same_children(),
) => aa == ab && a == c && b == d && pa == pb && ga == gb && same_children(),
(
UiKind::Column {
padding: a, gap: b, ..
@@ -197,6 +199,7 @@ pub enum UiKind {
},
Spacer(f32),
Scroll {
axis: crate::scroll::Axis,
width: f32,
height: f32,
padding: f32,