mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Fix Card Reveal Animation for default display
This commit is contained in:
@@ -244,10 +244,7 @@ public class ConquestRewardDialog extends FScrollPane {
|
|||||||
//ensure current card in view
|
//ensure current card in view
|
||||||
if (getScrollHeight() > getHeight() && index < cardCount) {
|
if (getScrollHeight() > getHeight() && index < cardCount) {
|
||||||
CardRevealer currentCard = cardRevealers.get(index);
|
CardRevealer currentCard = cardRevealers.get(index);
|
||||||
if (!Forge.extrawide.equals("default"))
|
scrollIntoView(currentCard, currentCard.getHeight() / (columnCount * PADDING) / 2);
|
||||||
scrollIntoView(currentCard, currentCard.getHeight() / (columnCount * PADDING) / 2);
|
|
||||||
else
|
|
||||||
scrollIntoView(currentCard, currentCard.getHeight() / 2 + PADDING); //show half of the card below
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user