From fec30ddd5253b109d6fe711109ff7485b1b4c06e Mon Sep 17 00:00:00 2001 From: SimonIT Date: Thu, 26 Dec 2019 22:59:49 +0100 Subject: width was set in height calculation --- core/src/ch/asynk/gdx/boardgame/ui/Element.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/ch/asynk/gdx/boardgame/ui/Element.java b/core/src/ch/asynk/gdx/boardgame/ui/Element.java index 9885b59..bf747b5 100644 --- a/core/src/ch/asynk/gdx/boardgame/ui/Element.java +++ b/core/src/ch/asynk/gdx/boardgame/ui/Element.java @@ -167,7 +167,7 @@ public abstract class Element implements Drawable, Paddable, Positionable, Touch rect.width = parent.getInnerWidth(); } if (sizing.fillHeight()) { - rect.width = parent.getInnerHeight(); + rect.height = parent.getInnerHeight(); } } // it is up to the subclass to implement the expand logic -- cgit v1.1-2-g2b99