diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2019-12-27 22:20:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-27 22:20:42 +0100 |
commit | e519042ba4720fd49b47c3c20eefcad5b42e2c1b (patch) | |
tree | 05558c372133294c3297e715c3a1a476ebe3055c /core | |
parent | 828816db241467c296d3559226cd5fe5494e5761 (diff) | |
parent | fec30ddd5253b109d6fe711109ff7485b1b4c06e (diff) | |
download | gdx-boardgame-e519042ba4720fd49b47c3c20eefcad5b42e2c1b.zip gdx-boardgame-e519042ba4720fd49b47c3c20eefcad5b42e2c1b.tar.gz |
Merge pull request #14 from SimonIT/fix-fiillHeight-calculation
Width was set in height calculation
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/ui/Element.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/ui/Element.java b/core/src/ch/asynk/gdx/boardgame/ui/Element.java index 63670ac..0a44eef 100644 --- a/core/src/ch/asynk/gdx/boardgame/ui/Element.java +++ b/core/src/ch/asynk/gdx/boardgame/ui/Element.java @@ -212,7 +212,7 @@ public class Element implements Drawable, Paddable, Positionable, Touchable 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 |