From: giwoong.kim Date: Thu, 23 May 2013 03:10:12 +0000 (+0900) Subject: skin: modified initail position of the KeyWindow X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~969 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=255157bfcf9cb9585ca3f8e82313868cd66f7efb;p=sdk%2Femulator%2Fqemu.git skin: modified initail position of the KeyWindow The initail position of the KeyWindow shifted to the inside of monitor bounds. Change-Id: I744e204f5f7792dde3d64815c64590726a502c8f Signed-off-by: GiWoong Kim --- diff --git a/tizen/src/skin/client/src/org/tizen/emulator/skin/custom/SkinWindow.java b/tizen/src/skin/client/src/org/tizen/emulator/skin/custom/SkinWindow.java index d7f2b5fc0e..dadac594dc 100644 --- a/tizen/src/skin/client/src/org/tizen/emulator/skin/custom/SkinWindow.java +++ b/tizen/src/skin/client/src/org/tizen/emulator/skin/custom/SkinWindow.java @@ -125,12 +125,20 @@ public class SkinWindow { /* correction of location */ if (correction == true) { + /* for right side */ int shift = (monitorBounds.x + monitorBounds.width) - (x + childBounds.width); if (shift < 0) { x += shift; parent.setLocation(parentBounds.x + shift, parentBounds.y); } + + /* for left side */ + if (x < 0) { + shift = x * (-1); + x += shift; + parent.setLocation(parentBounds.x + shift, parentBounds.y); + } } shell.setLocation(x, y);