GUI: improved game logs, added mouse cursor and hover style over active card names like browsers

This commit is contained in:
Oleg Agafonov 2023-11-29 03:10:53 +04:00
parent 9c6fc4187f
commit b695f8906c
10 changed files with 93 additions and 19 deletions

View file

@ -753,7 +753,8 @@ public class MageActionCallback implements ActionCallback {
location.setLocation(location.x - popupContainer.getWidth(), location.y);
}
if (!hasBottomSpace) {
location.setLocation(location.x, location.y - popupContainer.getHeight());
// if no upper space, then put at the top by Math.max
location.setLocation(location.x, Math.max(parentComponent.getY(), location.y - popupContainer.getHeight()));
}
break;
}