1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Clamp eframe window size to at most the size of the largest monitor (#2445)

This can hopefully fix some reported bugs where
This commit is contained in:
Emil Ernerfeldt
2022-12-13 09:09:36 +01:00
committed by GitHub
parent 32677a54e4
commit 4a72abc8ec
4 changed files with 36 additions and 12 deletions

View File

@@ -255,10 +255,10 @@ pub struct NativeOptions {
/// The initial inner size of the native window in points (logical pixels).
pub initial_window_size: Option<egui::Vec2>,
/// The minimum inner window size
/// The minimum inner window size in points (logical pixels).
pub min_window_size: Option<egui::Vec2>,
/// The maximum inner window size
/// The maximum inner window size in points (logical pixels).
pub max_window_size: Option<egui::Vec2>,
/// Should the app window be resizable?