Skip to content

Commit

Permalink
fixed line list not scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-1F committed Feb 4, 2025
1 parent c95ae56 commit 70384e8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions phichain-editor/src/tab/line_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ impl LineList<'_> {

ui.separator();

for entity in entities {
self.entity_ui(ui, entity, 0);
}
egui::ScrollArea::vertical().show(ui, |ui| {
for entity in entities {
self.entity_ui(ui, entity, 0);
}
});
}

fn entity_ui(&mut self, ui: &mut Ui, entity: Entity, level: u32) {
Expand Down

0 comments on commit 70384e8

Please sign in to comment.