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

program height becomes smaller when dragged between two screens #1650

Closed
coolit opened this issue Aug 10, 2020 · 6 comments
Closed

program height becomes smaller when dragged between two screens #1650

coolit opened this issue Aug 10, 2020 · 6 comments
Labels
B - bug Dang, that shouldn't have happened C - needs investigation Issue must be confirmed and researched DS - windows H - help wanted Someone please save us

Comments

@coolit
Copy link

coolit commented Aug 10, 2020

I used my win10 laptop (the scale_factor was 1.5) with a second big screen (scale_factor was 1) in Extend mode. As I dragged a program in winit examples between the two screens, the program height became smaller and smaller.

@chelmich
Copy link
Contributor

Could you provide a few more details? I was unable to reproduce this on my Windows 10 machine.

@coolit
Copy link
Author

coolit commented Aug 11, 2020

Hold the title bar of a program and drag the program between the two screens. Don't drop and continue to drag back and forth many times until you notice the height decrease.

@chelmich
Copy link
Contributor

Sorry, but I'm still having trouble replicating this issue. I'm running W10 version 2004 and the latest git master branch of winit. I tested with cargo run --example window, resized it to be larger, then dragged it between my monitors multiple times. The value reported by Window::inner_size() seemed to only toggle between two resolutions as expected. I tried setting the scale of both my primary and secondary monitor in turn to 150% as shown here:
image

@coolit
Copy link
Author

coolit commented Aug 11, 2020

Please see the screenshot below. I could only capture the small laptop screen, hopefully it can be of help.
GIF

@francesca64 francesca64 added DS - windows H - help wanted Someone please save us C - needs investigation Issue must be confirmed and researched B - bug Dang, that shouldn't have happened labels Aug 13, 2020
@maroider
Copy link
Member

I'm afraid I couldn't reproduce this either.

@coolit
Copy link
Author

coolit commented Jun 6, 2021

I changed a new laptop with the latest win10 version, and the problem was gone.

@coolit coolit closed this as completed Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened C - needs investigation Issue must be confirmed and researched DS - windows H - help wanted Someone please save us
Development

No branches or pull requests

4 participants