marc2332 / freya

Cross-platform GUI library for 🦀 Rust powered by 🧬 Dioxus and 🎨 Skia.
https://freyaui.dev/
MIT License
1.33k stars 51 forks source link

bug: Cannot specify just min/max width or min/max height alone #756

Closed MierenManz closed 1 month ago

MierenManz commented 1 month ago
fn main() {
    let config = LaunchConfig::<()>::default()
        .with_width(300.)
        .with_min_width(200.)
        .with_max_width(400.);

    launch_cfg(||rsx!(), config);
}

Windows can be resized beyond their bounds (min and max) if not all bounds are specified