thing-core: use border instead of padding for scroller clip ring test

This commit is contained in:
Meta Vens 2026-12-06 04:06:34 +01:00
commit 6cb305a349

View file

@ -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]);