Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Yan2018-11-28 13:08:10 -0500
committerXi Yan2018-11-28 13:08:10 -0500
commit552922712edf3a1c49f00e9662ccac27462cfcff (patch)
treed37dbc91ffbf6449d9efb9e5457cfed21a2a0f1e
parent9a5b3f0ec9f1df19dea4bc4424a06c8564435e6f (diff)
downloadorg.eclipse.mylyn.tasks-552922712edf3a1c49f00e9662ccac27462cfcff.tar.gz
org.eclipse.mylyn.tasks-552922712edf3a1c49f00e9662ccac27462cfcff.tar.xz
org.eclipse.mylyn.tasks-552922712edf3a1c49f00e9662ccac27462cfcff.zip
Bug 535962 - Submit button cut off
Set heightHint for submit button on GTK to prevent cutoff. Change-Id: I0b697a9648220edff4c37d34c6366d02032898b5 Signed-off-by: Xi Yan <xixiyan@redhat.com>
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/ToolBarButtonContribution.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/ToolBarButtonContribution.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/ToolBarButtonContribution.java
index db706f0e9..2719c0ff0 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/ToolBarButtonContribution.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/ToolBarButtonContribution.java
@@ -54,6 +54,8 @@ public abstract class ToolBarButtonContribution extends ControlContribution {
heigtHint = 22;
} else if (Platform.WS_CARBON.equals(SWT.getPlatform())) {
heigtHint = 32;
+ } else if (Platform.WS_GTK.equals(SWT.getPlatform())) {
+ heigtHint = 26;
}
GridDataFactory.fillDefaults().align(SWT.BEGINNING, SWT.CENTER).hint(SWT.DEFAULT, heigtHint).applyTo(button);
return composite;

Back to the top