mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Tweaked layout for small card text.
This commit is contained in:
parent
463576dbd0
commit
b2895ee9eb
1 changed files with 8 additions and 4 deletions
|
@ -664,10 +664,14 @@ public class ModernCardRenderer extends CardRenderer {
|
|||
|
||||
// Do we have room for additional spacing between the parts of text?
|
||||
// If so, calculate the spacing based on how much space was left over
|
||||
int spacing =
|
||||
(int)(remaining / (hasKeywords ?
|
||||
(textboxRules.size() + 2) :
|
||||
(textboxRules.size() + 1)));
|
||||
int spacing;
|
||||
if (remaining <= 0) {
|
||||
spacing = 0;
|
||||
} else {
|
||||
spacing = (int)(remaining / (hasKeywords ?
|
||||
(textboxRules.size() + 2) :
|
||||
(textboxRules.size() + 1)));
|
||||
}
|
||||
|
||||
// Do the actual draw
|
||||
loyaltyAbilityColorToggle = false;
|
||||
|
|
Loading…
Reference in a new issue