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

[Bug]: Client window will not be resized when DPI scaling changes #7678

Closed
5 of 8 tasks
arnowelzel opened this issue Dec 17, 2024 · 0 comments · Fixed by #7735
Closed
5 of 8 tasks

[Bug]: Client window will not be resized when DPI scaling changes #7678

arnowelzel opened this issue Dec 17, 2024 · 0 comments · Fixed by #7735

Comments

@arnowelzel
Copy link

⚠️ Before submitting, please verify the following: ⚠️

Bug description

The the DPI scaling in Windows 10/11 changes, the client does not update its Window size but keeps the original size, even when the content does not fit any longer.

Steps to reproduce

Steps to reproduce:

  1. Start the Nextcloud client in Windows 11 with scaling of 100% and see the main window of the client which looks OK:

Image

Note: image blurred partially for privacy reasons.

  1. Change the scaling to 200% and check the main window of the client again. Now it is too small:

Image

However - when stopping the client and starting it again, it will be OK:

Expected behavior

When the DPI scaling in Windows changes, the Window will be resized to the correct size.

Start with 100%:

Image

When changing scaling to 200%:

Image

Which files are affected by this bug

nextcloud.exe

Operating system

Windows

Which version of the operating system you are running.

Windows 11

Package

Official Windows MSI

Nextcloud Server version

30.0.4

Nextcloud Desktop Client version

3.15.2

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

Additional info

The Nextcloud server part is not relevant for this bug. It is a pure client side issue.

@nilsding nilsding self-assigned this Jan 8, 2025
@nilsding nilsding added this to the 3.16.0 milestone Jan 9, 2025
nilsding added a commit that referenced this issue Jan 9, 2025
This commit fixes #7678 and likely fixes #7447 too.  On Windows, when
the screen is changed to one with a different scaling setting the window
is being incorrectly resized.  This can be worked around by storing the
window's size before moving it to a different screen, and then resizing
the window again.

Signed-off-by: Jyrki Gadinger <[email protected]>
nilsding added a commit that referenced this issue Jan 13, 2025
This commit fixes #7678 and likely fixes #7447 too.  On Windows, when
the screen is changed to one with a different scaling setting the window
is being incorrectly resized.  This can be worked around by storing the
window's size before moving it to a different screen, and then resizing
the window again.

Signed-off-by: Jyrki Gadinger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants