Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resizability & min/max dimensions #681

Closed
senneh opened this issue Dec 26, 2015 · 1 comment
Closed

resizability & min/max dimensions #681

senneh opened this issue Dec 26, 2015 · 1 comment

Comments

@senneh
Copy link

senneh commented Dec 26, 2015

There didn't seem to be a resizable flag so I tried setting the min and max dimension to the same values as the window dimensions. This didn't seem to give the desired effect.
with_min_dimensions() & with_max_dimensions() set the dimension including the window border. I don't think this is the desired behavior for most users.

platform: windows 7

    let window = glutin::WindowBuilder::new()
        .with_title("Title".to_string())
        .with_dimensions(720, 480) // set the size excluding the border
        .with_min_dimensions(720, 480) // sets the size including the border
        .with_max_dimensions(720, 480) // sets the size including the border
        .build_glium()
        .unwrap();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants