Skip to content

Conversation

@HeikoKlare
Copy link
Contributor

When dragging a Sash with the SWT.SMOOTH, the width and height of the sash are erroneously scaled up by the current zoom. It is caused by a recent change which replaced a setBoundsInPixels with a setBounds call still using the same pixel-based width and height values.

This change adapts the according call to consistently use pixel-based values passed to the setBoundsInPixels method again.

Fixes #2329

@github-actions
Copy link
Contributor

github-actions bot commented Jul 22, 2025

Test Results

   546 files  ±0     546 suites  ±0   30m 10s ⏱️ +27s
 4 412 tests ±0   4 394 ✅  - 1   18 💤 +1  0 ❌ ±0 
16 718 runs  ±0  16 589 ✅  - 2  129 💤 +2  0 ❌ ±0 

Results for commit 92e81bf. ± Comparison against base commit f0afb7f.

This pull request skips 1 test.
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser ‑ test_setUrl_remote[browser flags: 524,288]

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review July 22, 2025 09:33
@HeikoKlare
Copy link
Contributor Author

@ShadelessFox can you test whether this change fixes the issue that you reproted?

@ShadelessFox
Copy link
Contributor

I confirm that these changes fix the issue :^)

When dragging a Sash with the SWT.SMOOTH, the width and height of the
sash are erroneously scaled up by the current zoom. It is caused by a
recent change which replaced a setBoundsInPixels with a setBounds call
still using the same pixel-based width and height values.

This change adapts the according call to consistently use pixel-based
values passed to the setBoundsInPixels method again.

Fixes eclipse-platform#2329
Copy link
Contributor

@amartya4256 amartya4256 left a comment

Choose a reason for hiding this comment

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

Fair! Since, the width and the height obtained are in Pixels, we should call setBoundsInPixels for that scale. Hence, approved.

@HeikoKlare HeikoKlare merged commit 34a4d76 into eclipse-platform:master Jul 22, 2025
17 checks passed
@HeikoKlare HeikoKlare deleted the issue-2329 branch July 22, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants