notecrumbs

a nostr opengraph server build on nostrdb and egui
git clone git://jb55.com/notecrumbs
Log | Files | Refs | README | LICENSE

commit e8241466bb5bd5be20b69a1ff942552c1bda4b17
parent 8dbd11dba2a71dc9a22880fccb4953ee069e4b18
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 21 Dec 2023 12:51:33 -0800

make sure the frame doesn't get smaller

Diffstat:
Msrc/render.rs | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/render.rs b/src/render.rs @@ -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); });