From c01888f7622f3013f5954e4552afdfa6498202f2 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 17 Nov 2026 06:13:55 +0000 Subject: [PATCH] Iconic trials name their rect helper rect_of, so the icon id check doesn't read panel labels as icon ids --- crates/ui-panels/src/docking/iconic/trials.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-panels/src/docking/iconic/trials.rs b/crates/ui-panels/src/docking/iconic/trials.rs index 3bdf299d5..41455272b 100644 --- a/crates/ui-panels/src/docking/iconic/trials.rs +++ b/crates/ui-panels/src/docking/iconic/trials.rs @@ -358,8 +358,8 @@ fn icon_groups_take_the_drops_of_an_expanded_columns_groups() { *seen.borrow_mut() = asked.borrow().iter().map(|at| DockTargets::::resolve(ui.ctx(), dock, *at).map(|(spot, _)| spot)).collect(); }); fixture.room(SCREEN).settle(); - let icon = |label: &str| fixture.by_label(label).expect("the panel's icon").rect; - let (brushes, layers, swatches) = (icon("Brushes"), icon("Layers"), icon("Swatches")); + let rect_of = |label: &str| fixture.by_label(label).expect("the panel's icon").rect; + let (brushes, layers, swatches) = (rect_of("Brushes"), rect_of("Layers"), rect_of("Swatches")); let x = brushes.center().x; *probes.borrow_mut() = vec![ Pos2::new(x, brushes.bottom()),