mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-02 06:27:53 -06:00
LRC-LIB-LIBFOLDERS: the width sweep also checks that the deepest row's count follows its name
This commit is contained in:
@@ -1652,6 +1652,9 @@ fn a_count_never_covers_the_name_of_a_deep_row() {
|
||||
for (id, r) in h.app.widgets.iter().filter(|(w, _)| w.starts_with("count:libfolder:")) {
|
||||
assert!(r.right() <= panel.right() || r.left() >= panel.right(), "at {width} pt {id} straddles the edge: {r:?} / {panel:?}");
|
||||
}
|
||||
// and the deepest row's count still comes after its name
|
||||
let (label, count) = (widget(&h, &format!("label:libfolder:{deep}")), widget(&h, &format!("count:libfolder:{deep}")));
|
||||
assert!(count.left() >= label.right(), "at {width} pt the count comes after the name: {label:?} {count:?}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user