7173487: closed/java/awt/Frame/RemoveNotifyTest/RemoveNotifyTest.html

Reviewed-by: anthony, dcherepanov, serb
This commit is contained in:
Alexander Zuev 2012-06-09 19:18:24 +04:00
parent 0494bcb19c
commit 663f9df53e

View File

@ -361,9 +361,11 @@ public class LWCToolkit extends LWToolkit {
CWrapper.NSObject.release(screen);
}
// Convert between Cocoa's coordinate system and Java.
return new Insets(fullScreen.height - workArea.height - workArea.y,
workArea.x, workArea.y,
fullScreen.width - workArea.width - workArea.x);
int bottom = workArea.y - fullScreen.y;
int top = fullScreen.height - workArea.height - bottom;
int left = workArea.x - fullScreen.x;
int right = fullScreen.width - workArea.width - left;
return new Insets(top, left, bottom, right);
}
@Override