diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-19 14:28:06 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-19 14:28:06 +0200 |
commit | 3042c3b18caadb262cdfd1dda2a8690b3c8dad11 (patch) | |
tree | 2937a64a346dbc3a670fe65d7da8baedd3749a70 /core/src/ch/asynk/rustanddust/ui | |
parent | 868316c44047d823dd970542ed775b352dce9f1d (diff) | |
download | RustAndDust-3042c3b18caadb262cdfd1dda2a8690b3c8dad11.zip RustAndDust-3042c3b18caadb262cdfd1dda2a8690b3c8dad11.tar.gz |
Widget: if position is ABSOLUTE do not update()
Diffstat (limited to 'core/src/ch/asynk/rustanddust/ui')
-rw-r--r-- | core/src/ch/asynk/rustanddust/ui/Widget.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/ui/Widget.java b/core/src/ch/asynk/rustanddust/ui/Widget.java index 9460833..b33f11a 100644 --- a/core/src/ch/asynk/rustanddust/ui/Widget.java +++ b/core/src/ch/asynk/rustanddust/ui/Widget.java @@ -73,6 +73,7 @@ public abstract class Widget implements Disposable, Drawable public void update() { float x, y; + if (position == Position.ABSOLUTE) return; if (parent == null) { x = position.getX(rect.width); y = position.getY(rect.height); |