diff options
author | SimonIT <simonit.orig@gmail.com> | 2019-12-16 10:15:54 +0100 |
---|---|---|
committer | SimonIT <simonit.orig@gmail.com> | 2019-12-16 10:15:54 +0100 |
commit | d02831ea584da80bdffa854e393f82d5f7e3951b (patch) | |
tree | ddb78e02df884098caa65a6750ac3b0bf70cfed0 /core | |
parent | 59f347809d6b6374431ad02847b67adcb065f56e (diff) | |
download | gdx-boardgame-d02831ea584da80bdffa854e393f82d5f7e3951b.zip gdx-boardgame-d02831ea584da80bdffa854e393f82d5f7e3951b.tar.gz |
make computeGeometry public
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/ui/Element.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/ui/Label.java | 2 |
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 abefdd5..4b2d7fb 100644 --- a/core/src/ch/asynk/gdx/boardgame/ui/Element.java +++ b/core/src/ch/asynk/gdx/boardgame/ui/Element.java @@ -105,7 +105,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 32ae814..96981a5 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 this.tainted = true; } - @Override protected void computeGeometry() + @Override public void computeGeometry() { this.rect.width = (layout.width + (2 * padding)); this.rect.height = (layout.height + (2 * padding)); |