commit 242053c6e0b7bc00fae198b04b7a42c1182be0b3
parent 80b76c5381e22d4e98e77207c949269ee735168e
Author: kernelkind <kernelkind@gmail.com>
Date: Mon, 1 Apr 2024 11:04:50 -0400
Constrain app minimum size
Signed-off-by: kernelkind <kernelkind@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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);