Skip to content

Improve empty workspace helper layout #2975

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

Conversation

akoch-yatta
Copy link
Contributor

This PR adjusts the grid layout in EmptyWorkspaceHelper to address an issue in Windows with monitor specific scaling active. This commit will not fully solve the issue, but significantly lower the scenarios when it is triggered.

It reduces the effect the mentioned issue by letting the parent Composite fill its that. That way the issue will only occur when the View has a specific width. The proper fix will need additional effort in SWT which could cause other regressions, therefor I'd recommend this PR this late in the release cycle.

Contributes to eclipse-platform/eclipse.platform.swt#2003

The Border are of course only added temporarily for the screenshots

Layout Before

ewh_before

Layout After

ewh_after

This commit adjusts the grid layout in EmptyWorkspaceHelper to address
an issue in Windows with monitor specific scaling active. This commit
will not fully solve the issue, but significantly lower the scenarios
when it is triggered.

Contributes to eclipse-platform/eclipse.platform.swt#2003
Copy link
Contributor

Test Results

 1 824 files  ±0   1 824 suites  ±0   1h 32m 39s ⏱️ - 6m 7s
 7 925 tests ±0   7 697 ✅ +1  228 💤 ±0  0 ❌  - 1 
23 862 runs  ±0  23 114 ✅ +1  748 💤 ±0  0 ❌  - 1 

Results for commit 59e2f22. ± Comparison against base commit bfeb6c6.

Copy link
Contributor

@BeckerWdf BeckerWdf left a comment

Choose a reason for hiding this comment

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

sounds reasonable

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.

Looks good, thank you! Works as expected and (almost) resolves eclipse-platform/eclipse.platform.swt#2003

@HeikoKlare HeikoKlare merged commit beb2de0 into eclipse-platform:master May 13, 2025
18 checks passed
@HeikoKlare HeikoKlare deleted the improve-empty-workspace-helper-layout branch May 13, 2025 13:29
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.

Links in empty Package Explorer are cut off
3 participants