From e14c560c872941c4611ea94de5bee61e5669a3d2 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Tue, 4 Mar 2025 13:20:01 -0500 Subject: [PATCH] fix: apply default width to all applet popups --- src/applet/mod.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/applet/mod.rs b/src/applet/mod.rs index f1d22819..16d47348 100644 --- a/src/applet/mod.rs +++ b/src/applet/mod.rs @@ -323,10 +323,10 @@ impl Context { ) .limits( Limits::NONE - .min_width(1.) .min_height(1.) - .max_width(500.) - .max_height(1000.), + .min_width(360.0) + .max_width(360.0) + .max_height(1000.0), ) } @@ -365,7 +365,11 @@ impl Context { }, reactive: true, constraint_adjustment: 15, // slide_y, slide_x, flip_x, flip_y - ..Default::default() + size_limits: Limits::NONE + .min_height(1.0) + .min_width(360.0) + .max_width(360.0) + .max_height(1080.0), }, parent_size: None, grab: true,