The initail position of the KeyWindow shifted to
the inside of monitor bounds.
Change-Id: I744e204f5f7792dde3d64815c64590726a502c8f
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
/* 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);