Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaxsun McCarthy Huggan2016-12-18 03:35:35 -0500
committerJaxsun McCarthy Huggan2016-12-18 03:35:35 -0500
commitac270d5163774de75af3311163230bb00937a5e9 (patch)
tree4e8cc45411af32d51b1bba62ca96095e17cb24a3
parent59051fbcf87af0fb27d640d8b0d994ca6aa88644 (diff)
downloadorg.eclipse.mylyn.reviews-ac270d5163774de75af3311163230bb00937a5e9.tar.gz
org.eclipse.mylyn.reviews-ac270d5163774de75af3311163230bb00937a5e9.tar.xz
org.eclipse.mylyn.reviews-ac270d5163774de75af3311163230bb00937a5e9.zip
357234: reduce excess vertical space due to remove reviewer controls
Change-Id: Ie7b635674871a2c20b71a8efe2ebedef1813f612 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=357234 Signed-off-by: Jaxsun McCarthy Huggan <jaxsun.mccarthy@tasktop.com>
-rw-r--r--org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/factories/GerritReviewerUiFactoryProvider.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/factories/GerritReviewerUiFactoryProvider.java b/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/factories/GerritReviewerUiFactoryProvider.java
index c818cdd15..2fe547a05 100644
--- a/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/factories/GerritReviewerUiFactoryProvider.java
+++ b/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/factories/GerritReviewerUiFactoryProvider.java
@@ -18,6 +18,9 @@ import org.eclipse.mylyn.reviews.core.model.IUser;
import org.eclipse.mylyn.reviews.ui.spi.factories.AbstractUiFactory;
import org.eclipse.mylyn.reviews.ui.spi.factories.AbstractUiFactoryProvider;
import org.eclipse.mylyn.reviews.ui.spi.factories.IUiContext;
+import org.eclipse.swt.layout.RowLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
public class GerritReviewerUiFactoryProvider extends AbstractUiFactoryProvider<IUser> {
@@ -28,4 +31,13 @@ public class GerritReviewerUiFactoryProvider extends AbstractUiFactoryProvider<I
return factories;
}
+ @Override
+ public Composite createControls(IUiContext context, Composite parent, FormToolkit toolkit, IUser object) {
+ Composite buttonComposite = super.createControls(context, parent, toolkit, object);
+ RowLayout layout = (RowLayout) buttonComposite.getLayout();
+ layout.marginBottom = 0;
+ layout.marginTop = 0;
+ return buttonComposite;
+ }
+
}

Back to the top