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