Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scroll-bars the "Add/Remove entities" window #1445

Merged
merged 1 commit into from
Feb 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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