diff options
author | SimonIT <simonit.orig@gmail.com> | 2019-12-26 22:59:49 +0100 |
---|---|---|
committer | SimonIT <simonit.orig@gmail.com> | 2019-12-26 22:59:49 +0100 |
commit | fec30ddd5253b109d6fe711109ff7485b1b4c06e (patch) | |
tree | 5a6fbdcd77227f0b97b4cfbb00aaa74b7a3d2f49 /core/src/ch/asynk/gdx | |
parent | 97caa84105cceb98ec1253426e200858b4bcb9da (diff) | |
download | gdx-boardgame-fec30ddd5253b109d6fe711109ff7485b1b4c06e.zip gdx-boardgame-fec30ddd5253b109d6fe711109ff7485b1b4c06e.tar.gz |
width was set in height calculation
Diffstat (limited to 'core/src/ch/asynk/gdx')
-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 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 |