preview: add scroll to profile pic demo

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-07-28 13:04:09 -05:00
parent b917d48015
commit c007cbd4f2

View File

@@ -174,6 +174,7 @@ mod preview {
impl View for ProfilePicPreview { impl View for ProfilePicPreview {
fn ui(&mut self, ui: &mut egui::Ui) { fn ui(&mut self, ui: &mut egui::Ui) {
egui::ScrollArea::both().show(ui, |ui| {
ui.horizontal_wrapped(|ui| { ui.horizontal_wrapped(|ui| {
let txn = Transaction::new(&self.ndb).unwrap(); let txn = Transaction::new(&self.ndb).unwrap();
for key in &self.keys { for key in &self.keys {
@@ -203,6 +204,7 @@ mod preview {
}); });
} }
}); });
});
} }
} }