From 3bf9d7210b1fdd450be712c26f12ee35c201317e Mon Sep 17 00:00:00 2001 From: "giwoong.kim" Date: Wed, 12 Dec 2012 22:13:48 +0900 Subject: [PATCH] skin: modified docking area Expand main window's docking area. Signed-off-by: GiWoong Kim --- .../tizen/emulator/skin/window/ControlPanel.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tizen/src/skin/client/src/org/tizen/emulator/skin/window/ControlPanel.java b/tizen/src/skin/client/src/org/tizen/emulator/skin/window/ControlPanel.java index 3d715b158a..4f9f528718 100644 --- a/tizen/src/skin/client/src/org/tizen/emulator/skin/window/ControlPanel.java +++ b/tizen/src/skin/client/src/org/tizen/emulator/skin/window/ControlPanel.java @@ -297,21 +297,23 @@ public class ControlPanel extends SkinWindow { Rectangle parentBounds = parent.getBounds(); Rectangle childBounds = shell.getBounds(); + int heightOneThird = parentBounds.height / 3; + /* right-middle */ Rectangle attachBounds1 = new Rectangle( (parentBounds.x + parentBounds.width) - 5, - (parentBounds.y + (parentBounds.height / 2)) - 10, - 30, 20); + parentBounds.y + heightOneThird, + 30, heightOneThird); /* right-top */ Rectangle attachBounds2 = new Rectangle( (parentBounds.x + parentBounds.width) - 5, - (parentBounds.y) - 40, - 30, 80); + parentBounds.y, + 30, heightOneThird); /* right-bottom */ Rectangle attachBounds3 = new Rectangle( (parentBounds.x + parentBounds.width) - 5, - (parentBounds.y + parentBounds.height) - 40, - 30, 80); + parentBounds.y + (heightOneThird * 2), + 30, heightOneThird); if (childBounds.intersects(attachBounds1) == true) { setShellPosition(SWT.RIGHT | SWT.CENTER, false, true); -- 2.34.1