提交 3793816a 编写于 作者: K kizune

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

Reviewed-by: anthony, dcherepanov, serb
上级 abc6a316
...@@ -361,9 +361,11 @@ public class LWCToolkit extends LWToolkit { ...@@ -361,9 +361,11 @@ public class LWCToolkit extends LWToolkit {
CWrapper.NSObject.release(screen); CWrapper.NSObject.release(screen);
} }
// Convert between Cocoa's coordinate system and Java. // Convert between Cocoa's coordinate system and Java.
return new Insets(fullScreen.height - workArea.height - workArea.y, int bottom = workArea.y - fullScreen.y;
workArea.x, workArea.y, int top = fullScreen.height - workArea.height - bottom;
fullScreen.width - workArea.width - workArea.x); int left = workArea.x - fullScreen.x;
int right = fullScreen.width - workArea.width - left;
return new Insets(top, left, bottom, right);
} }
@Override @Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册