diff options
author | Marc-Andre Laperle | 2015-04-21 13:56:07 +0000 |
---|---|---|
committer | Andrey Loskutov | 2015-04-27 17:51:09 +0000 |
commit | d4ccc1156b0994e7679274fdedec89dd4a896436 (patch) | |
tree | f3047705620fb852a720b0b1c7506f49d0acb161 | |
parent | 2ecca412503a621b9c20b38bf5de158906e30921 (diff) | |
download | eclipse.platform.ui-d4ccc1156b0994e7679274fdedec89dd4a896436.tar.gz eclipse.platform.ui-d4ccc1156b0994e7679274fdedec89dd4a896436.tar.xz eclipse.platform.ui-d4ccc1156b0994e7679274fdedec89dd4a896436.zip |
Bug 463245 - Debug toolbar items not visible until restartI20150428-0100I20150427-2000
Change-Id: I4a5040cb086100326088404f8a3681c949e59ba9
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
-rw-r--r-- | bundles/org.eclipse.e4.ui.widgets/src/org/eclipse/e4/ui/widgets/ImageBasedFrame.java | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/bundles/org.eclipse.e4.ui.widgets/src/org/eclipse/e4/ui/widgets/ImageBasedFrame.java b/bundles/org.eclipse.e4.ui.widgets/src/org/eclipse/e4/ui/widgets/ImageBasedFrame.java index 753d0ebc01c..bbe351638e9 100644 --- a/bundles/org.eclipse.e4.ui.widgets/src/org/eclipse/e4/ui/widgets/ImageBasedFrame.java +++ b/bundles/org.eclipse.e4.ui.widgets/src/org/eclipse/e4/ui/widgets/ImageBasedFrame.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2014 IBM Corporation and others. + * Copyright (c) 2012, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -7,6 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Marc-Andre Laperle (Ericsson) - Bug 463245 ******************************************************************************/ package org.eclipse.e4.ui.widgets; @@ -99,13 +100,11 @@ public class ImageBasedFrame extends Canvas { } public void controlMoved(ControlEvent e) { + // Bug 463245 - The framed control should always stay at the same location + setFramedControlLocation(); } }); - if (vertical) { - toWrap.setLocation(w1, h1 + handleHeight); - } else { - toWrap.setLocation(w1 + handleWidth, h1); - } + setFramedControlLocation(); setSize(computeSize(-1, -1)); if (toWrap instanceof ToolBar) { @@ -113,6 +112,14 @@ public class ImageBasedFrame extends Canvas { } } + private void setFramedControlLocation() { + if (vertical) { + framedControl.setLocation(w1, h1 + handleHeight); + } else { + framedControl.setLocation(w1 + handleWidth, h1); + } + } + public Rectangle getHandleRect() { Rectangle handleRect = new Rectangle(0, 0, 0, 0); if (!draggable || handle.isDisposed()) |