GUI: fixed wrong popup card window in non-full screen;

This commit is contained in:
Oleg Agafonov 2023-11-26 10:48:50 +04:00
parent 99cbddb8b8
commit 785f6973b9

View file

@ -733,7 +733,6 @@ public class MageActionCallback implements ActionCallback {
case PUT_INSIDE_PARENT: {
location = new Point((int) data.getLocationOnScreen().getX() + data.getPopupOffsetX() - 40, (int) data.getLocationOnScreen().getY() + data.getPopupOffsetY() - 40);
location = GuiDisplayUtil.keepComponentInsideParent(location, parentPoint, popupComponent, parentComponent);
location.translate(-parentPoint.x, -parentPoint.y);
break;
}