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

Expand Bar is not scaled during DPI change #1528

Merged

Conversation

ShahzaibIbrahim
Copy link
Contributor

@ShahzaibIbrahim ShahzaibIbrahim commented Oct 10, 2024

When moving from one zoom level monitor to another zoom level (no matter what %), The expanded items and texts are not drawn at correct coordinates.

HOW TO TEST

  • Run the ControlExample with the following VM Arguments
-Dswt.autoScale=quarter
-Dswt.autoScale.updateOnRuntime=true
  • Switch to the tab "Expand Items"
  • Move the window from 200 to 100 zoom level monitor (Producible in any combination of zoom levels)
  • See if the "expanded" items are aligned to correct coordinates

SCREENSHOTS

Before Fix:
image

After Fix:
image

Requires

Contributes to #62 and #127

Copy link
Contributor

github-actions bot commented Oct 10, 2024

Test Results

   483 files  ±0     483 suites  ±0   8m 27s ⏱️ - 1m 41s
 4 095 tests ±0   4 085 ✅ ±0   7 💤 ±0  3 ❌ ±0 
16 173 runs  ±0  16 080 ✅ ±0  90 💤 ±0  3 ❌ ±0 

For more details on these failures, see this check.

Results for commit 661396e. ± Comparison against base commit a26b66a.

♻️ This comment has been updated with latest results.

@ShahzaibIbrahim ShahzaibIbrahim force-pushed the Master103-ExpandBar branch 2 times, most recently from f4c102c to d27e04e Compare November 6, 2024 13:54
When using the monitor-specific rescaling functionality on Windows,
moving a shell between monitors with different zoom levels (no matter
which zoom levels they are), the images, expand items and texts are not
drawn at correct coordinates.

This change fixes the behavior to perform an appropriate layout update
of the ExpandBar.
@HeikoKlare
Copy link
Contributor

For failing tests see: #1564

@HeikoKlare HeikoKlare merged commit 8593132 into eclipse-platform:master Nov 7, 2024
12 of 14 checks passed
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.

Scaling of ExpandBar not working properly after DPI change
2 participants