Tweaked layout for small card text.

This commit is contained in:
Mark Langen 2016-09-01 16:13:28 -06:00
parent 463576dbd0
commit b2895ee9eb

View file

@ -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;