From 242053c6e0b7bc00fae198b04b7a42c1182be0b3 Mon Sep 17 00:00:00 2001 From: kernelkind Date: Mon, 1 Apr 2024 11:04:50 -0400 Subject: [PATCH] Constrain app minimum size Signed-off-by: kernelkind --- src/app_creation.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app_creation.rs b/src/app_creation.rs index c925f46c..d3334f18 100644 --- a/src/app_creation.rs +++ b/src/app_creation.rs @@ -9,6 +9,7 @@ pub fn generate_native_options() -> NativeOptions { .with_fullsize_content_view(true) .with_titlebar_shown(false) .with_title_shown(false) + .with_min_inner_size([660.0 * (1.0 + UI_SCALE_FACTOR) , 720.0 * (1.0 + UI_SCALE_FACTOR)]) }); let mut native_options = eframe::NativeOptions::default(); native_options.window_builder = Some(window_builder);