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

After the screen is zoomed, the editing window is too small #19

Open
maxbad opened this issue May 25, 2021 · 11 comments
Open

After the screen is zoomed, the editing window is too small #19

maxbad opened this issue May 25, 2021 · 11 comments

Comments

@maxbad
Copy link

maxbad commented May 25, 2021

QQ图片20210525221238

@besh81
Copy link
Owner

besh81 commented May 26, 2021

Interesting ... what screen resolution are you using?
Seems I have to take into account the high DPI screen.

@maxbad
Copy link
Author

maxbad commented May 26, 2021

This is a notebook, the resolution is too high, so adjust the zoom

@besh81
Copy link
Owner

besh81 commented May 26, 2021

You mean the nana::zoom function ?

@maxbad
Copy link
Author

maxbad commented May 26, 2021

The nana component is adaptive, and its own window needs to be adjusted accordingly

login_form fm(0);
auto dpi = nana::api::window_dpi(fm);
if (dpi > 96) {
auto iSize = fm.size();
iSize.height *= dpi / 96;
iSize.width *= dpi / 96;
nana::api::window_size(fm, iSize);
}
fm.show();

@besh81
Copy link
Owner

besh81 commented May 27, 2021

Ok I have to adjust the code to work with high dpi screen.
First thing to do in TODO list :)

@maxbad
Copy link
Author

maxbad commented Jun 5, 2021

Is there any progress?😁

@besh81
Copy link
Owner

besh81 commented Jun 6, 2021

I'm sorry in these days I'm very busy and it's hard to find time to work on nana creator. Hope to work on it in the coming weeks

@besh81
Copy link
Owner

besh81 commented Jun 18, 2021

Just to let you know I started working on this issue and I found a cuople of bugs in nana lib. We'll need some times to fix both.

@maxbad
Copy link
Author

maxbad commented Jun 18, 2021

Thank you, it's finally started, happy😁😁😁

@maxbad
Copy link
Author

maxbad commented Jun 28, 2021

Did the previous version still not fix DIP scaling?

@besh81
Copy link
Owner

besh81 commented Jun 30, 2021

Just uploaded a new version 0.32.0 with few fixes based on DPI scaling.
More work is needed to have a complete support for high DPI screen and is involving not only nana creator but nana lib itself.

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

No branches or pull requests

2 participants