Revert "RENDERER: align chevron dropdown menu to the center of chevron button"
authorGiWoong Kim <giwoong.kim@samsung.com>
Mon, 18 Jul 2016 01:51:13 +0000 (10:51 +0900)
committerSangho Park <sangho.p@samsung.com>
Mon, 18 Jul 2016 07:43:43 +0000 (16:43 +0900)
This reverts commit 1f11923da74aee0f7647d402438f9ced5cd582be.

Change-Id: Icf249ad531b07485b34b948983902c9a4fe142b6
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java

index 3bb6873..712d69e 100644 (file)
@@ -1239,25 +1239,7 @@ public class StackRenderer extends LazyStackRenderer implements IPreferenceChang
                Point size = editorList.computeSizeHint();
                editorList.setSize(size.x, size.y);
 
-               /* Tizen */
-               // Point location = ctf.toDisplay(getChevronLocation(ctf));
-
-               Point alignPos = getChevronLocation(ctf); // right-bottom of the last item
-               ToolBar chevronTb = null;
-               try {
-                       chevronTb = ctf.getChevron();
-               } catch (IllegalAccessError e) {
-                       // Fall through
-               }
-
-               if (chevronTb != null) {
-                       // align part to the center of chevron button
-                       alignPos.x += chevronTb.getBounds().x - alignPos.x; // spacing between item and tool bar
-                       alignPos.x += (chevronTb.getSize().x - size.x) / 2;
-               }
-
-               Point location = ctf.toDisplay(alignPos);
-               /* ===== */
+               Point location = ctf.toDisplay(getChevronLocation(ctf));
                Monitor mon = ctf.getMonitor();
                Rectangle bounds = mon.getClientArea();
                if (location.x + size.x > bounds.x + bounds.width) {