From bf94e0739d591bb2895b2406b7458c09fb6f6fc8 Mon Sep 17 00:00:00 2001 From: SimonIT Date: Tue, 17 Dec 2019 15:55:29 +0100 Subject: fix computeGeometry used getInnerX instead of getInnerY for relative y --- core/src/ch/asynk/gdx/boardgame/ui/Element.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1-2-g2b99