mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[UI] Fixed popup location
This commit is contained in:
parent
5fcc3b1ba8
commit
bcb91dade1
1 changed files with 1 additions and 0 deletions
|
@ -864,6 +864,7 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
|
|||
data.card = this.gameCard;
|
||||
data.popupText = popupText;
|
||||
data.gameId = this.gameId;
|
||||
data.locationOnScreen = data.component.getLocationOnScreen(); // we need this for popup
|
||||
data.popupOffsetX = isTapped() ? cardHeight + cardXOffset + POPUP_X_GAP : cardWidth + cardXOffset + POPUP_X_GAP;
|
||||
data.popupOffsetY = 40;
|
||||
return data;
|
||||
|
|
Loading…
Reference in a new issue