Set minimum windows size

This commit is contained in:
Gregory Schier
2024-07-23 11:35:16 -07:00
parent 38e0882dd1
commit 1db44a1f16

View File

@@ -1858,6 +1858,7 @@ fn create_window(handle: &AppHandle, url: &str) -> WebviewWindow {
100.0 + random::<f64>() * 30.0,
100.0 + random::<f64>() * 30.0,
)
.min_inner_size(300.0, 300.0)
.title(handle.package_info().name.to_string());
// Add macOS-only things