From: giwoong.kim Date: Wed, 12 Dec 2012 13:13:48 +0000 (+0900) Subject: skin: modified docking area X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1292 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bf9d7210b1fdd450be712c26f12ee35c201317e;p=sdk%2Femulator%2Fqemu.git skin: modified docking area Expand main window's docking area. Signed-off-by: GiWoong Kim --- 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);