diff options
| author | Paul Pazderski | 2019-09-02 20:43:11 +0000 |
|---|---|---|
| committer | Paul Pazderski | 2019-09-15 14:14:07 +0000 |
| commit | d1512255453353602e2f4d10af88b300f8a32b40 (patch) | |
| tree | a83fdefd71c1e612c3d9d216d0280488045a5cd3 | |
| parent | bd6a44098efc7f56f76a0d95e62d867a20f2ac5a (diff) | |
| download | eclipse.platform.ui-d1512255453353602e2f4d10af88b300f8a32b40.tar.gz eclipse.platform.ui-d1512255453353602e2f4d10af88b300f8a32b40.tar.xz eclipse.platform.ui-d1512255453353602e2f4d10af88b300f8a32b40.zip | |
Bug 378255 - A single Job makes scrollbars appear on the Progress View
Change-Id: Ia04da35ff5fadf1b450a12aa7afb4f2edd1b684a
Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
4 files changed, 4 insertions, 14 deletions
diff --git a/bundles/org.eclipse.e4.ui.progress/src/org/eclipse/e4/ui/progress/internal/DetailedProgressViewer.java b/bundles/org.eclipse.e4.ui.progress/src/org/eclipse/e4/ui/progress/internal/DetailedProgressViewer.java index a378274ba21..b084c828a04 100644 --- a/bundles/org.eclipse.e4.ui.progress/src/org/eclipse/e4/ui/progress/internal/DetailedProgressViewer.java +++ b/bundles/org.eclipse.e4.ui.progress/src/org/eclipse/e4/ui/progress/internal/DetailedProgressViewer.java @@ -360,7 +360,8 @@ public class DetailedProgressViewer extends AbstractProgressViewer { // Update the minimum size Point size = control.computeSize(SWT.DEFAULT, SWT.DEFAULT); - size.x += IDialogConstants.HORIZONTAL_SPACING; + // no horizontal size because we do not want to scroll horizontal + size.x = 0; size.y += IDialogConstants.VERTICAL_SPACING; scrolled.setMinSize(size); diff --git a/bundles/org.eclipse.e4.ui.progress/src/org/eclipse/e4/ui/progress/internal/ProgressInfoItem.java b/bundles/org.eclipse.e4.ui.progress/src/org/eclipse/e4/ui/progress/internal/ProgressInfoItem.java index 206edb6adb0..96317aed686 100644 --- a/bundles/org.eclipse.e4.ui.progress/src/org/eclipse/e4/ui/progress/internal/ProgressInfoItem.java +++ b/bundles/org.eclipse.e4.ui.progress/src/org/eclipse/e4/ui/progress/internal/ProgressInfoItem.java @@ -704,8 +704,6 @@ public class ProgressInfoItem extends Composite { IDialogConstants.VERTICAL_SPACING); linkData.left = new FormAttachment(progressBar, 0, SWT.LEFT); linkData.right = new FormAttachment(progressBar, 0, SWT.RIGHT); - // Give an initial value so as to constrain the link shortening - linkData.width = 20; taskEntries.get(0).setLayoutData(linkData); } @@ -731,16 +729,12 @@ public class ProgressInfoItem extends Composite { IDialogConstants.VERTICAL_SPACING); linkData.left = new FormAttachment(top, 0, SWT.LEFT); linkData.right = new FormAttachment(top, 0, SWT.RIGHT); - // Give an initial value so as to constrain the link shortening - linkData.width = 20; } else { Link previous = taskEntries.get(index - 1); linkData.top = new FormAttachment(previous, IDialogConstants.VERTICAL_SPACING); linkData.left = new FormAttachment(previous, 0, SWT.LEFT); linkData.right = new FormAttachment(previous, 0, SWT.RIGHT); - // Give an initial value so as to constrain the link shortening - linkData.width = 20; } link.setLayoutData(linkData); diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/DetailedProgressViewer.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/DetailedProgressViewer.java index 27d4ef5bdf9..06a1bead4a5 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/DetailedProgressViewer.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/DetailedProgressViewer.java @@ -474,7 +474,8 @@ public class DetailedProgressViewer extends AbstractProgressViewer { */ private void updateSize() { Point size = control.computeSize(SWT.DEFAULT, SWT.DEFAULT); - size.x += IDialogConstants.HORIZONTAL_SPACING; + // no horizontal size because we do not want to scroll horizontal + size.x = 0; size.y += IDialogConstants.VERTICAL_SPACING; scrolled.setMinSize(size); } diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java index 2d0682744fe..99b0c81f281 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java @@ -678,8 +678,6 @@ public class ProgressInfoItem extends Composite { linkData.top = new FormAttachment(progressBar, IDialogConstants.VERTICAL_SPACING); linkData.left = new FormAttachment(progressBar, 0, SWT.LEFT); linkData.right = new FormAttachment(progressBar, 0, SWT.RIGHT); - // Give an initial value so as to constrain the link shortening - linkData.width = 20; taskEntries.get(0).setLayoutData(linkData); } @@ -703,15 +701,11 @@ public class ProgressInfoItem extends Composite { linkData.top = new FormAttachment(top, IDialogConstants.VERTICAL_SPACING); linkData.left = new FormAttachment(top, 0, SWT.LEFT); linkData.right = new FormAttachment(top, 0, SWT.RIGHT); - // Give an initial value so as to constrain the link shortening - linkData.width = 20; } else { Link previous = taskEntries.get(index - 1); linkData.top = new FormAttachment(previous, IDialogConstants.VERTICAL_SPACING); linkData.left = new FormAttachment(previous, 0, SWT.LEFT); linkData.right = new FormAttachment(previous, 0, SWT.RIGHT); - // Give an initial value so as to constrain the link shortening - linkData.width = 20; } link.setLayoutData(linkData); |
