summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimonIT <simonit.orig@gmail.com>2019-12-17 15:55:29 +0100
committerSimonIT <simonit.orig@gmail.com>2019-12-17 15:55:29 +0100
commitbf94e0739d591bb2895b2406b7458c09fb6f6fc8 (patch)
tree6205bacbba8493d40a896417e5a360936908960d
parent36d827659b54b04c90722eb2e431f622b33c047c (diff)
downloadgdx-boardgame-bf94e0739d591bb2895b2406b7458c09fb6f6fc8.zip
gdx-boardgame-bf94e0739d591bb2895b2406b7458c09fb6f6fc8.tar.gz
fix computeGeometry used getInnerX instead of getInnerY for relative y
-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 2fe9f89..59304b5 100644
--- a/core/src/ch/asynk/gdx/boardgame/ui/Element.java
+++ b/core/src/ch/asynk/gdx/boardgame/ui/Element.java
@@ -126,7 +126,7 @@ public abstract class Element implements Drawable, Paddable, Positionable, Touch
rect.y = y;
} else if (alignment == Alignment.RELATIVE) {
rect.x = x + parent.getInnerX();
- rect.y = y + parent.getInnerX();
+ rect.y = y + parent.getInnerY();
} else {
rect.x = x + alignment.getX(parent, rect.width);
rect.y = y + alignment.getY(parent, rect.height);