From 14d58661902f31a26b688a205a9a45fa34e28b03 Mon Sep 17 00:00:00 2001 From: arnav-hiwarkar Date: Tue, 17 Nov 2026 16:17:48 +0530 Subject: [PATCH] #3585: say where the gap revealed above an effect header comes from --- crates/ui-egui/src/panels/effect_controls/panel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/panels/effect_controls/panel.rs b/crates/ui-egui/src/panels/effect_controls/panel.rs index f89a6eac0..5ced41673 100644 --- a/crates/ui-egui/src/panels/effect_controls/panel.rs +++ b/crates/ui-egui/src/panels/effect_controls/panel.rs @@ -468,7 +468,7 @@ pub fn show(app: &mut EffectcraftApp, ui: &mut egui::Ui, rect: Rect) { if let Some(uid) = ctx.data_mut(|d| d.remove_temp::(reveal_id())) && let Some(&(_, top)) = tops.iter().find(|(u, _)| *u == uid) { - // (With the 4-point gap above the first header.) + // (With the 4-point gap above it: the panel starts with one and every effect ends with one.) let top = top - body.min.y + offset; widgets::PanelScroll::reveal(&ctx, egui::Id::unique("ec-scroll"), top - 4.0, top + ROW + 2.0, body.height()); ctx.request_repaint();