Merge branch 'red/rd-dialogs-w6' into area/dialogs-fw

This commit is contained in:
Martin Ball
2026-11-18 18:35:24 +00:00
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -407,6 +407,12 @@ impl Rows<'_> {
grid.kind = kind;
}
let kind = setup.grid.map_or(grid.kind, |grid| grid.kind);
eprintln!(
"DIAG the_grid_counts_follow_the_grid_kind_and_a_refused_ok_shows_its_reason: shown {:?} picked {:?} kind {:?}",
grid.kind,
group.output.value().copied(),
kind
);
let chars = self.count(
ui,
form,
+7
View File
@@ -59,6 +59,13 @@ fn the_grid_counts_follow_the_grid_kind_and_a_refused_ok_shows_its_reason() {
let pick = |fixture: &mut Fixture, label: &str| {
let radio = fixture.by_label(label).unwrap_or_else(|| panic!("the {label} radio"));
fixture.click(&radio).settle();
let both = (fixture.by_label("Characters per line"), fixture.by_label("Lines per page"));
eprintln!(
"DIAG the_grid_counts_follow_the_grid_kind_and_a_refused_ok_shows_its_reason: clicked {label} chars disabled {:?} lines disabled {:?} held kind {:?}",
both.0.as_ref().map(|f| fixture.tree().is_disabled_key(f.node)),
both.1.as_ref().map(|f| fixture.tree().is_disabled_key(f.node)),
state.borrow().0.grid.map(|grid| grid.kind)
);
};
assert!(disabled(&fixture, "Characters per line") && disabled(&fixture, "Lines per page"), "no grid: both counts disabled");
pick(&mut fixture, "Line grid only");