From bf187376d245491d15616abaf0bd3814f3da05d1 Mon Sep 17 00:00:00 2001 From: aiongg Date: Thu, 19 Nov 2026 13:27:27 +0000 Subject: [PATCH] craft-ui-panels: note why the dock's tab row and column bar replay at rest --- crates/ui-panels/src/docking/dock_column/bar.rs | 3 ++- crates/ui-panels/src/docking/group.rs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ui-panels/src/docking/dock_column/bar.rs b/crates/ui-panels/src/docking/dock_column/bar.rs index 37a2e2bfcb..ed687cbf9b 100644 --- a/crates/ui-panels/src/docking/dock_column/bar.rs +++ b/crates/ui-panels/src/docking/dock_column/bar.rs @@ -114,7 +114,8 @@ pub(in crate::docking) fn show_bar( let mut sent = Vec::new(); ui.scope_builder(UiBuilder::new().max_rect(band), |ui| { let props = BarProps { expanded, auto_collapse, arrow, icons, unit, active, ghost, name, sent: Outbox::new(&mut sent) }; - // Keyed by its column's scope id: unique among the bars of a scroll area's columns. + // Keyed by its column's scope id: unique among the bars of a scroll area's columns. As for the tab row, the env + // around it holds only values its key follows, so it replays at rest. let _ = MemoView::new(ui.scope_id(), props, column_bar::

).show(ui); }); for event in sent { diff --git a/crates/ui-panels/src/docking/group.rs b/crates/ui-panels/src/docking/group.rs index 6450e16551..cecdb3dbbe 100644 --- a/crates/ui-panels/src/docking/group.rs +++ b/crates/ui-panels/src/docking/group.rs @@ -532,6 +532,8 @@ impl Container for size: self.size, sent: Outbox::new(&mut sent), }; + // The env around the tab row holds only values its key follows (the shell, the dock's arrangement, a + // floating window's layer), no handle or context rebuilt each pass, so it replays at rest. MemoView::new(("tabs", cx.id), row, tab_row::

).show(ui) }) .inner;