thing-core: use border instead of padding for scroller clip ring test
This commit is contained in:
parent
84a05b8de9
commit
6cb305a349
1 changed files with 2 additions and 2 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue