summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-19 14:28:06 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-19 14:28:06 +0200
commit3042c3b18caadb262cdfd1dda2a8690b3c8dad11 (patch)
tree2937a64a346dbc3a670fe65d7da8baedd3749a70 /core/src/ch/asynk
parent868316c44047d823dd970542ed775b352dce9f1d (diff)
downloadRustAndDust-3042c3b18caadb262cdfd1dda2a8690b3c8dad11.zip
RustAndDust-3042c3b18caadb262cdfd1dda2a8690b3c8dad11.tar.gz
Widget: if position is ABSOLUTE do not update()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/ui/Widget.java1
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);