From 3042c3b18caadb262cdfd1dda2a8690b3c8dad11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 19 May 2016 14:28:06 +0200 Subject: Widget: if position is ABSOLUTE do not update() --- core/src/ch/asynk/rustanddust/ui/Widget.java | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.1-2-g2b99