Skip to content

Commit 59e2f22

Browse files
committed
Improve empty workspace helper layout
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
1 parent bfeb6c6 commit 59e2f22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/helpers/EmptyWorkspaceHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private void createEmptyArea(Composite displayAreas) {
191191

192192
Composite optionsArea = new Composite(infoArea, SWT.NONE);
193193
GridLayoutFactory.swtDefaults().numColumns(2).applyTo(optionsArea);
194-
GridDataFactory.swtDefaults().indent(5, 0).grab(true, true).applyTo(optionsArea);
194+
GridDataFactory.swtDefaults().indent(5, 0).align(SWT.FILL, SWT.CENTER).grab(true, true).applyTo(optionsArea);
195195

196196
final FormToolkit toolkit = new FormToolkit(emptyArea.getDisplay());
197197
emptyArea.addDisposeListener(e -> toolkit.dispose());
@@ -283,7 +283,7 @@ public void linkActivated(HyperlinkEvent e) {
283283
action.run();
284284
}
285285
});
286-
GridDataFactory.swtDefaults().align(SWT.FILL, SWT.FILL).grab(true, false).applyTo(addLink);
286+
GridDataFactory.swtDefaults().align(SWT.BEGINNING, SWT.FILL).grab(true, false).applyTo(addLink);
287287
}
288288

289289
private IAction getAction(IWizardRegistry registry, String id) {

0 commit comments

Comments
 (0)