skin: modified docking area
authorgiwoong.kim <giwoong.kim@samsung.com>
Wed, 12 Dec 2012 13:13:48 +0000 (22:13 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Wed, 12 Dec 2012 13:13:48 +0000 (22:13 +0900)
Expand main window's docking area.

Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/window/ControlPanel.java

index 3d715b158a5c583d8c39a4e19ef60d93737c494b..4f9f528718dbbd63d6f93c5dbd1ae37896aee9d4 100644 (file)
@@ -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);