提交 df97f360 编写于 作者: S serb

8026476: Choice does not get mouse events if it does not have enough place for popup menu

Reviewed-by: anthony, serb
Contributed-by: alexander.zvegintsev@oracle.com
上级 2c4d6082
......@@ -814,12 +814,12 @@ public class XChoicePeer extends XComponentPeer implements ChoicePeer, ToplevelS
x = screen.width - width;
}
if (y + height > screen.height) {
y = global.y - height;
}
if (y < 0) {
y = 0;
}
else if (y + height > screen.height) {
y = screen.height - height;
}
return new Rectangle(x, y, width, height);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册