summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/gdx/boardgame/ui/Element.java2
-rw-r--r--core/src/ch/asynk/gdx/boardgame/ui/Label.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/ui/Element.java b/core/src/ch/asynk/gdx/boardgame/ui/Element.java
index e1f9850..63e2e29 100644
--- a/core/src/ch/asynk/gdx/boardgame/ui/Element.java
+++ b/core/src/ch/asynk/gdx/boardgame/ui/Element.java
@@ -108,7 +108,7 @@ public abstract class Element implements Drawable, Paddable, Positionable, Touch
setPosition(x, y, rect.width, rect.height);
}
- protected void computeGeometry()
+ public void computeGeometry()
{
if (alignment == Alignment.ABSOLUTE || parent == null) {
rect.x = x;
diff --git a/core/src/ch/asynk/gdx/boardgame/ui/Label.java b/core/src/ch/asynk/gdx/boardgame/ui/Label.java
index 68701ce..190dd83 100644
--- a/core/src/ch/asynk/gdx/boardgame/ui/Label.java
+++ b/core/src/ch/asynk/gdx/boardgame/ui/Label.java
@@ -43,7 +43,7 @@ public class Label extends Element
taint();
}
- @Override protected void computeGeometry()
+ @Override public void computeGeometry()
{
this.rect.width = (layout.width + (2 * padding));
this.rect.height = (layout.height + (2 * padding));