summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/boardgame
diff options
context:
space:
mode:
authorSimonIT <simonit.orig@gmail.com>2019-12-26 22:59:49 +0100
committerSimonIT <simonit.orig@gmail.com>2019-12-26 22:59:49 +0100
commitfec30ddd5253b109d6fe711109ff7485b1b4c06e (patch)
tree5a6fbdcd77227f0b97b4cfbb00aaa74b7a3d2f49 /core/src/ch/asynk/gdx/boardgame
parent97caa84105cceb98ec1253426e200858b4bcb9da (diff)
downloadgdx-boardgame-fec30ddd5253b109d6fe711109ff7485b1b4c06e.zip
gdx-boardgame-fec30ddd5253b109d6fe711109ff7485b1b4c06e.tar.gz
width was set in height calculation
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/ui/Element.java2
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