diff --git a/core/src/main/java/tripleplay/ui/Element.java b/core/src/main/java/tripleplay/ui/Element.java index 2986a178..7832de0c 100644 --- a/core/src/main/java/tripleplay/ui/Element.java +++ b/core/src/main/java/tripleplay/ui/Element.java @@ -473,7 +473,7 @@ protected IDimension preferredSize (float hintX, float hintY) { * Configures the location of this element, relative to its parent. */ protected void setLocation (float x, float y) { - layer.setTranslation(MathUtil.ifloor(x), MathUtil.ifloor(y)); + layer.setTranslation(MathUtil.round(x), MathUtil.round(y)); } /**