From e082a082518e9e1b70f34e1ade38dafde06e260f Mon Sep 17 00:00:00 2001 From: Antoine Beyeler Date: Tue, 28 Nov 2023 15:14:02 +0100 Subject: [PATCH] Add some space before the Visible History UI after whatever UI is rendered by the space view class --- crates/re_viewer/src/ui/selection_panel.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/re_viewer/src/ui/selection_panel.rs b/crates/re_viewer/src/ui/selection_panel.rs index bac0165404ab..004423568ea2 100644 --- a/crates/re_viewer/src/ui/selection_panel.rs +++ b/crates/re_viewer/src/ui/selection_panel.rs @@ -438,6 +438,8 @@ fn blueprint_ui( .clone() .unwrap_or(resolved_entity_props.clone()); + let cursor = ui.cursor(); + space_view .class(ctx.space_view_class_registry) .selection_ui( @@ -449,6 +451,12 @@ fn blueprint_ui( &mut props, ); + if cursor != ui.cursor() { + // add some space if something was rendered by selection_ui + //TODO(ab): use design token + ui.add_space(16.0); + } + visible_history_ui( ctx, ui,