From 6cb305a349a53d30350583682c7474a623f44694 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 6 Dec 2026 04:06:34 +0100 Subject: [PATCH] thing-core: use border instead of padding for scroller clip ring test --- crates/thing-core/tests/keyboard.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/thing-core/tests/keyboard.rs b/crates/thing-core/tests/keyboard.rs index ed9b74b..d77a10c 100644 --- a/crates/thing-core/tests/keyboard.rs +++ b/crates/thing-core/tests/keyboard.rs @@ -632,10 +632,10 @@ fn key_scroll_and_reveal_in_pixels_and_cells() { assert_eq!(at_home.commands, tabbed.commands, "{mode:?}"); } - // 1b. Padded horizontal-only scroller: ring strokes its clip rect (inset from border rect) and Right/Left scroll horizontally. + // 1b. Bordered horizontal-only scroller: ring strokes its clip rect (padding box, inset from border rect) and Right/Left scroll horizontally. let mut hpane = column("hpane", Some((160.0, 80.0)), Overflow::Scroll, vec![fixed("wide", 400.0, 40.0)]); if let Node::Box(b) = &mut hpane { - b.style.padding = edges(px(4.0)); + b.paint.border = Some(Border { color: ColorRef::Rgba(Rgba { r: 74, g: 74, b: 96, a: 255 }), width: 4.0 }); } let hdoc = surface(column("root", None, Overflow::Visible, vec![hpane]), vec![]); let hrig = placement(MemState::new(), &hdoc, MODES[0]);