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

Initial window size on Linux incorrect #563

Open
andrewdavidmackenzie opened this issue Oct 30, 2024 · 2 comments
Open

Initial window size on Linux incorrect #563

andrewdavidmackenzie opened this issue Oct 30, 2024 · 2 comments
Labels
bug Something isn't working ui/ux Things affecting the visual UI, or the User Experience
Milestone

Comments

@andrewdavidmackenzie
Copy link
Owner

I am seeing some behaviour on Linux but not Macos:

I set an initial window size with Iced::application() in main()

        .window_size(LayoutSelector::get_default_window_size())

The window appears with a size smaller than specified, and scroll bars are shown.

I have a control that changes layout and changes the window size to match.
When I change the size and then change it back (using window::resize) then the size is correct.

Could this be the window manager overriding the initial window size?
(running on Pop! with Cosmic Desktop)

If so, is there any way to override that and force the window size?

@andrewdavidmackenzie andrewdavidmackenzie added bug Something isn't working ui/ux Things affecting the visual UI, or the User Experience labels Oct 30, 2024
@andrewdavidmackenzie andrewdavidmackenzie added this to the 0.5.0 Release milestone Oct 30, 2024
@andrewdavidmackenzie
Copy link
Owner Author

taking screen captures (which includes a window title area) I get these sizes:

Initial: 1289x727 pixels
Resized to hide scrollbars: 1370x753 pixels
Resized using layout selector: 1369x751 pixels

@andrewdavidmackenzie
Copy link
Owner Author

Reported as: iced-rs/iced#2657

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ui/ux Things affecting the visual UI, or the User Experience
Projects
None yet
Development

No branches or pull requests

1 participant