forked from External/mage
GUI: improved game logs, added mouse cursor and hover style over active card names like browsers
This commit is contained in:
parent
9c6fc4187f
commit
b695f8906c
10 changed files with 93 additions and 19 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue