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

App window resizing is not working properly #10406

Closed
2 tasks done
mmattel opened this issue Jan 18, 2023 · 7 comments · Fixed by #10533
Closed
2 tasks done

App window resizing is not working properly #10406

mmattel opened this issue Jan 18, 2023 · 7 comments · Fixed by #10533
Assignees
Labels
p3-medium Normal priority type:bug

Comments

@mmattel
Copy link
Contributor

mmattel commented Jan 18, 2023

Pre-submission Checks

  • I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
  • I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.

Describe the bug

Windows 10x64
resolution
Using the recommended scaling (150%)
resolution
I cant reduce the size of the app more down as the following:
150
compared when using 125%
125

Now this may look identical when comparing the contents of the windows.
But when looking to the absolute window sizes (see images above) this is a huge difference and more than 17%. (125 --> 155)

The impact is, that with 150% (recommended by MS) the screen is more or less blocked by the app window and you cant see other stuff and you cant size it more down.

Note that it necessary to at least make the window shrink vertically more than it does now.
Horizontally you can move the window to get content into the visible area.

I cant imagine that this behaviour is benificial for important customers.

Expected behavior

Ability to further shrink down the app window size making other screen content visible.

Steps to reproduce the issue

No response

Screenshots

No response

Logs

No response

Client version number

image

Desktop environment (Linux only)

No response

Client package version and origin (Linux only)

No response

Installation path (Windows only)

C:\Program Files (x86)\ownCloud

Server information

No response

Additional context

No response

@TheOneRing
Copy link
Contributor

Did you restart the client after changes to the scaling?

@mmattel
Copy link
Contributor Author

mmattel commented Jan 20, 2023

I just did the following:

Set "Scale and Layout" to 125% and restarted the app.
The red area cant be shrinked down
restarted after setting to 125

Here you can compare the font sizes from the app and the desktop icons. You see that with 125% the font sizes are more or less the same while with 150% the app has a much bigger fontsize compared to the desktop:

125%
compare font size 125
150%
compare font size 150

After setting "Scale and Layout" back to 150% without touching the app, it looks like that.
post resetting to 150

When I click on the app, it exploded vertically to a size where the bottom went under the screen and due to its size the Hide button was not accessible anymore. Only by fully closing the app and restarting it, it was fitting into the screen again but in a size as described for 150% on top.

@TheOneRing
Copy link
Contributor

TheOneRing commented Jan 27, 2023

As a workaround for now please set:
In cmd:

set QT_SCALE_FACTOR_ROUNDING_POLICY="Floor"

In powershell:

$env:QT_SCALE_FACTOR_ROUNDING_POLICY="Floor"; 

Works with 3.0 and later.

For development:
https://doc.qt.io/qt-5/qguiapplication.html#highDpiScaleFactorRoundingPolicy
https://doc.qt.io/qt-5/highdpi.html#microsoft-windows

@TheOneRing TheOneRing added the p3-medium Normal priority label Jan 27, 2023
@TheOneRing TheOneRing added this to the 4.0 milestone Jan 27, 2023
@mmattel

This comment was marked as off-topic.

@mmattel

This comment was marked as off-topic.

@amrita-shrestha
Copy link
Contributor

amrita-shrestha commented Mar 30, 2023

Tested

Build : ownCloud 4.0.0.10524-daily20230329 [f5ecc9]

Display resolution 1920 * 999

Set "Scale and Layout" from 100% to 150%

  1. without restarting the owncloud app
    Screenshot from 2023-03-30 12-15-50
  • button buttons are hidden ❓
  • can't shrink the app window ❓
  • font size looks justified
  • activity table left side border line disappears ❓
    Screenshot from 2023-03-30 13-30-23
  1. restarted the app.
    Screenshot from 2023-03-30 12-20-07
  • after restarting the app text and icon size shrink a little bit than before ❓
  • bottom buttons are visible ✔️
  • can shrink ✔️
    Screenshot from 2023-03-30 12-26-13
  • activity table left side border line disappears ❓
    Screenshot from 2023-03-30 13-30-45

Set "Scale and Layout" from 150% to 100%

  1. without restarting the owncloud app
    Screenshot from 2023-03-30 12-35-09
  • can shrink ✔️
  • font size looks very small
  1. restarted the app

Screenshot from 2023-03-30 12-35-30

  • after restarting the app text and icon size expand a little bit more than before ❓
  • can shrink ✔️

cc @TheOneRing

@TheOneRing
Copy link
Contributor

Restarting the app is always required.

  • activity table left side border line disappears
    this is expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3-medium Normal priority type:bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants