Skip to content

Commit

Permalink
make sure the frame doesn't get smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
jb55 committed Dec 21, 2023
1 parent 8dbd11d commit e824146
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,9 @@ fn note_ui(app: &Notecrumbs, ctx: &egui::Context, note: &NoteRenderData) {
});

ui.vertical(|ui| {
ui.set_max_size(Vec2::new(desired_width, desired_height / 2.2));
let desired = Vec2::new(desired_width, desired_height / 2.2);
ui.set_max_size(desired);
ui.set_min_size(desired);
// only one widget is allowed in here
wrapped_body(ui, &note.note.content);
});
Expand Down

0 comments on commit e824146

Please sign in to comment.