Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Moffatt2012-10-04 18:52:10 +0000
committerEric Moffatt2012-10-04 18:52:10 +0000
commit801333daeccb2524fe02374e4390749abe5ced0a (patch)
treef55a6a2c28d477840dcd2f23ea2c9570647ed89d
parentd609fcbea6e6a33dd8213befd7e9553a8af9d954 (diff)
downloadeclipse.platform.ui-801333daeccb2524fe02374e4390749abe5ced0a.tar.gz
eclipse.platform.ui-801333daeccb2524fe02374e4390749abe5ced0a.tar.xz
eclipse.platform.ui-801333daeccb2524fe02374e4390749abe5ced0a.zip
Fix for Bug 389941 - Keyline at bottom of toolbar clipped by SPACERv20121004-185210
control
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/TrimBarLayout.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/TrimBarLayout.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/TrimBarLayout.java
index b28bc2899c7..a8c39ccdc6c 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/TrimBarLayout.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/TrimBarLayout.java
@@ -185,7 +185,7 @@ public class TrimBarLayout extends Layout {
return false;
boolean barVisible = ((ToolBar) kids[0]).getItemCount() > 0;
-
+
// HACK! The trim dragging code uses the visible attribute as well
// this is a local 'lock' to prevent the layout from messing with it
if (!te.getTags().contains("LockVisibility")) { //$NON-NLS-1$
@@ -242,7 +242,7 @@ public class TrimBarLayout extends Layout {
int extra = curLine.extraSpace / curLine.spacerCount--;
if (horizontal) {
ctrlSize.x += extra;
- ctrl.setBounds(curX, curY, ctrlSize.x, bounds.height);
+ ctrl.setBounds(curX, curY, ctrlSize.x, bounds.height - 4);
} else {
ctrlSize.y += extra;
ctrl.setBounds(curX, curY, bounds.width, extra);

Back to the top