mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Ensure stack wide enough on narrower displays
This commit is contained in:
@@ -82,7 +82,7 @@ public class VStack extends FDropDown {
|
|||||||
float x = PADDING;
|
float x = PADDING;
|
||||||
float y = PADDING;
|
float y = PADDING;
|
||||||
float dy = PADDING - 1;
|
float dy = PADDING - 1;
|
||||||
float totalWidth = Math.round(maxWidth / 2);
|
float totalWidth = Math.min(4 * CARD_WIDTH, maxWidth);
|
||||||
float width = totalWidth - 2 * PADDING;
|
float width = totalWidth - 2 * PADDING;
|
||||||
|
|
||||||
if (stack.isEmpty()) { //show label if stack empty
|
if (stack.isEmpty()) { //show label if stack empty
|
||||||
|
|||||||
Reference in New Issue
Block a user