Skip to content

Commit

Permalink
Add scroll-bars the "Add/Remove entities" window (#1445)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk authored Feb 28, 2023
1 parent 9224783 commit 5b7998b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/re_viewer/src/ui/space_view_entity_picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ impl SpaceViewEntityPicker {
// TODO(andreas): Doesn't center properly. `pivot(Align2::CENTER_CENTER)` seems to be broken. Also, should reset every time
.default_pos(ui.ctx().screen_rect().center())
.collapsible(false)
.default_height(640.0)
.resizable(true)
.frame(egui::Frame {
fill: ui.visuals().panel_fill,
inner_margin: re_ui::ReUi::view_padding().into(),
Expand All @@ -55,7 +57,9 @@ impl SpaceViewEntityPicker {
.title_bar(false)
.show(ui.ctx(), |ui| {
title_bar(ctx.re_ui, ui, title, &mut open);
add_entities_ui(ctx, ui, space_view);
egui::ScrollArea::vertical().show(ui, |ui| {
add_entities_ui(ctx, ui, space_view);
});
});

// Any click outside causes the window to close.
Expand Down

0 comments on commit 5b7998b

Please sign in to comment.