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

Using native zoom to compute size for width and height #1695

Closed

Conversation

ShahzaibIbrahim
Copy link
Contributor

When autoScale is int200 the size compute for width and height is not scaled for the following buttons correctly during DPI change. Using native zoom instead of corrected zoom fixes the issue.

Scenario
Moving from Secondary (200) to Primary (150) Project -> Properties -> Save actions. (autoScale = Int200)

Before Fix
image

After Fix
image

When autoScale is int200 the size compute for width and height is not
scaled correctly during DPI change. Using native zoom instead of
corrected zoom fixes the issue.
Copy link
Contributor

Test Results

   486 files  ±0     486 suites  ±0   9m 57s ⏱️ -51s
 4 306 tests ±0   4 293 ✅ ±0   13 💤 ±0  0 ❌ ±0 
16 408 runs  ±0  16 300 ✅ ±0  108 💤 ±0  0 ❌ ±0 

Results for commit 939aab9. ± Comparison against base commit 49fd6b0.

Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please explain why this is a reasonable fix?
If I am not mistaken, all size calculations/computations are currently based on scaling via the deviceZoom, not via the nativeZoom. So this change seems to introduce an inconsistency in how scaling of control sizes is performed.

@HeikoKlare
Copy link
Contributor

@HeikoKlare HeikoKlare closed this Jan 14, 2025
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

Successfully merging this pull request may close these issues.

Buttons text scaling but not the button layout in Project Property page
2 participants