diff options
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); |