aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-01-26 01:18:21 +0100
committerSven Göthel <[email protected]>2024-01-26 01:18:21 +0100
commit09c256e2f26938cc2015176e259164bd7421dbdd (patch)
tree22e35811b481d4dd1e2688b4257fbb59af1b1831 /src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java
parent8fe39d3a524e5e580cf2667988965f1e27fed95b (diff)
Math Vec*: Rename {scale->mul}(..) for non-scalar types (n-dim); Add div(..)
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/layout/BoxLayout.java4
1 files changed, 2 insertions, 2 deletions
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 ) {