Ensure stack wide enough on narrower displays

This commit is contained in:
drdev
2014-05-13 02:56:27 +00:00
parent b50af5269a
commit 16c8b33cde

View File

@@ -82,7 +82,7 @@ public class VStack extends FDropDown {
float x = PADDING;
float y = PADDING;
float dy = PADDING - 1;
float totalWidth = Math.round(maxWidth / 2);
float totalWidth = Math.min(4 * CARD_WIDTH, maxWidth);
float width = totalWidth - 2 * PADDING;
if (stack.isEmpty()) { //show label if stack empty