From 09c256e2f26938cc2015176e259164bd7421dbdd Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Fri, 26 Jan 2024 01:18:21 +0100 Subject: Math Vec*: Rename {scale->mul}(..) for non-scalar types (n-dim); Add div(..) --- src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java') diff --git a/src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java b/src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java index bd939f37e..4c654f535 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java +++ b/src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java @@ -258,9 +258,9 @@ public class BoxLayout implements Group.Layout { } else if( !isCenteredHoriz && diffBL.x() > 0 ) { diffBL.setX(0); // only adjust negative if !center-horiz } - diffBL.scale(s.getScale()).scale(-1f); + diffBL.mul(s.getScale()).scale(-1f); } else { - diffBL.min(new Vec3f()).scale(s.getScale()).scale(-1f); + diffBL.min(new Vec3f()).mul(s.getScale()).scale(-1f); } s.move( diffBL.scale(sxy) ); if( TRACE_LAYOUT ) { -- cgit v1.2.3