diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2019-12-17 16:46:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-17 16:46:29 +0100 |
commit | d26a201fd5214297defa4487cda8bb757153f520 (patch) | |
tree | 15a37667708a3352b6ee8a4872fd9e624ef1d75d /core/src/ch/asynk/gdx | |
parent | 49ba15174430fe4c86350348e31659c959af411c (diff) | |
parent | bf94e0739d591bb2895b2406b7458c09fb6f6fc8 (diff) | |
download | gdx-boardgame-d26a201fd5214297defa4487cda8bb757153f520.zip gdx-boardgame-d26a201fd5214297defa4487cda8bb757153f520.tar.gz |
Merge pull request #10 from SimonIT/fix-computeGeometry
Fix computeGeometry used getInnerX instead of getInnerY for relative y
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 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); |