-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Window.fixed_size() et al. do not work #498
Comments
Is there a workaround or fix for this? Thanks. |
This workaround worked for me. |
From looking at the file that @parasyte linked above, it seems like there's just a condition missing that checks whether the user has set From what I can tell, it looks like there are two options for fixing this that come down to how we want to express that
In either case, we can just add the appropriate condition to the I'd opt for (1) as it's simpler and more consistent with the current code (and I can define a helper function |
Any action on this one ? |
@emilk, looks like the author can throw a PR together for this--do either of his approaches see acceptable? |
Using the
fixed_size()
method on a window makes it non-resizable, but the size of the window always conforms to the contents. The size passed to the method is completely ignored.I did some digging and discovered that the issue is in the following condition:
egui/egui/src/containers/resize.rs
Lines 266 to 277 in 60fd709
Because the window is not resizable, it will not be given the requested size.
Unconditionally using the first branch seems to fix it, but I do not know what else might break.
The text was updated successfully, but these errors were encountered: