aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Rolka2014-01-15 10:39:58 (EST)
committerGerrit Code Review @ Eclipse.org2014-01-15 11:12:31 (EST)
commit77108408a6915617564b031709f0596fa7c75394 (patch)
tree5bdb9dca8a40bcd70521558cc654d17e03b6fa33
parent1f2e7c9d79cc5f66076df1daa952acd0bf96e161 (diff)
downloadeclipse.platform.ui-77108408a6915617564b031709f0596fa7c75394.zip
eclipse.platform.ui-77108408a6915617564b031709f0596fa7c75394.tar.gz
eclipse.platform.ui-77108408a6915617564b031709f0596fa7c75394.tar.bz2
Bug 420238 - [CSS] Reduce whitespace usage in the default Eclipse themesrefs/changes/89/20389/4
Change-Id: I8bfa14cf516ddf903f39d6b763b6ff60620069bf Signed-off-by: Daniel Rolka <daniel.rolka@pl.ibm.com>
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/CTabRendering.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/CTabRendering.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/CTabRendering.java
index 9976097..740ad10 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/CTabRendering.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/CTabRendering.java
@@ -250,7 +250,10 @@ public class CTabRendering extends CTabFolderRenderer implements
// HEADER
Rectangle trim = computeTrim(PART_HEADER, state, 0, 0, 0, 0);
trim.width = bounds.width - trim.width;
- trim.height = (parent.getTabHeight() + 1 + header) - trim.height;
+
+ // The bug 425777 has been opened for cleaning up the 'magic' values
+ trim.height = (parent.getTabHeight() + (onBottom ? 7 : 4)) - trim.height;
+
trim.x = -trim.x;
trim.y = onBottom ? bounds.height - parent.getTabHeight() - 1 - header
: -trim.y;