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

Wrong size of iced widget when the scale factor isn't 1 #119

Open
fortime opened this issue Jan 17, 2025 · 0 comments
Open

Wrong size of iced widget when the scale factor isn't 1 #119

fortime opened this issue Jan 17, 2025 · 0 comments

Comments

@fortime
Copy link
Contributor

fortime commented Jan 17, 2025

Compared to the window created by iced_winit, the size of widgets is equal to that of iced_winit multiplied by the scale factor.

After debug and reading the source code, I found that there are two issues:

  1. the code handles size incorrectly. Some are treated as physical size and some are treated as logical size in window state. But all size should be treated as logical size.
  2. There is no setting destination of wp viewport when window state is created.

I have create a work in progress pr: 118, can you take a look at it?

@fortime fortime changed the title Wrong size of iced widget when the scale factor is 1 Wrong size of iced widget when the scale factor isn't 1 Jan 17, 2025
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

1 participant