aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Stocker2013-11-02 11:00:26 (EDT)
committerGerrit Code Review @ Eclipse.org2013-11-25 17:03:00 (EST)
commita670ec8283925660f1842660b166f345fc1ba349 (patch)
tree99bdcec8eb09ae5e9c8f08c3edebd5bed2345ca1
parent995063c17c006aa3a837bf55692db5a22761c9e7 (diff)
downloadeclipse.platform.ui-a670ec8283925660f1842660b166f345fc1ba349.zip
eclipse.platform.ui-a670ec8283925660f1842660b166f345fc1ba349.tar.gz
eclipse.platform.ui-a670ec8283925660f1842660b166f345fc1ba349.tar.bz2
Bug 420951 - Height of part header background is too small when shadowI20131126-0800refs/changes/03/18003/5
is disabled When shadow is disabled as in I59354956 for bug 420238, the height was 1px too small. This could be seen as a white line at the bottom of the part header. Change-Id: I20e016ce7b2c313a9f114df2c3d1e875cb73210f Signed-off-by: Robin Stocker <robin@nibor.org>
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/CTabRendering.java2
1 files changed, 1 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 aebc709..361efe6 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
@@ -240,7 +240,7 @@ public class CTabRendering extends CTabFolderRenderer {
region.intersect(clipping);
gc.setClipping(region);
- int header = shadowEnabled ? onBottom ? 6 : 3 : 0; // TODO: this needs to be added to computeTrim for
+ int header = shadowEnabled ? onBottom ? 6 : 3 : 1; // TODO: this needs to be added to computeTrim for
// HEADER
Rectangle trim = computeTrim(PART_HEADER, state, 0, 0, 0, 0);
trim.width = bounds.width - trim.width;