From 7995b209e18ea504759e49378a22b49ec761ee89 Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Thu, 3 Mar 2022 13:11:18 +0000 Subject: [PATCH] change window min size to 400 * 270 --- core/src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/app.rs b/core/src/app.rs index e30e554f..797011c4 100644 --- a/core/src/app.rs +++ b/core/src/app.rs @@ -41,7 +41,7 @@ pub fn lanuch() { .title(LocalizedString::new("Lapce").with_placeholder("Lapce")) .show_titlebar(false) .window_size(window_data.size) - .with_min_size(Size::new(800.0, 600.0)) + .with_min_size(Size::new(400.0, 270.0)) .set_position(window_data.pos); launcher = launcher.with_window(window); } @@ -126,7 +126,7 @@ fn command( ) .show_titlebar(false) .window_size(info.size) - .with_min_size(Size::new(800.0, 600.0)) + .with_min_size(Size::new(400.0, 270.0)) .set_position(info.pos); ctx.new_window(desc); return druid::Handled::Yes;