diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2019-12-16 14:12:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-16 14:12:33 +0100 |
commit | f1e45d6c366c8df1c5f0143f3f7353395d08d4ec (patch) | |
tree | 1a71ce3506c855b4d4dedcd1160eaef98acc79fd /core/src/ch/asynk/gdx | |
parent | 5a8a247bb5e2889514daf01c848cbab9ad5f4c31 (diff) | |
parent | d02831ea584da80bdffa854e393f82d5f7e3951b (diff) | |
download | gdx-boardgame-f1e45d6c366c8df1c5f0143f3f7353395d08d4ec.zip gdx-boardgame-f1e45d6c366c8df1c5f0143f3f7353395d08d4ec.tar.gz |
Merge pull request #6 from SimonIT/public-computeGeometry
Make computeGeometry public
Diffstat (limited to 'core/src/ch/asynk/gdx')
-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 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)); |