summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2019-12-27 22:20:42 +0100
committerGitHub <noreply@github.com>2019-12-27 22:20:42 +0100
commite519042ba4720fd49b47c3c20eefcad5b42e2c1b (patch)
tree05558c372133294c3297e715c3a1a476ebe3055c /core/src/ch/asynk
parent828816db241467c296d3559226cd5fe5494e5761 (diff)
parentfec30ddd5253b109d6fe711109ff7485b1b4c06e (diff)
downloadgdx-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/src/ch/asynk')
-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 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