diff options
author | Sven Gothel <[email protected]> | 2023-12-31 01:24:29 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-12-31 01:24:29 +0100 |
commit | 5ad98721c2f868aca0567e2467b5dfb0c071c490 (patch) | |
tree | bde792da401febe6d8eff777520b3c1e7b5c6da8 /src/graphui/classes | |
parent | f89bfe3d830a2b489e8b2488d07677ee057124f0 (diff) |
GraphUI Group: Fix layout w/ zero shapes (empty), i.e. set AABBox to zero
Diffstat (limited to 'src/graphui/classes')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/Group.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Group.java b/src/graphui/classes/com/jogamp/graph/ui/Group.java index db2fe8f98..b96291128 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/Group.java +++ b/src/graphui/classes/com/jogamp/graph/ui/Group.java @@ -373,7 +373,9 @@ public class Group extends Shape implements Container { // box has been reset final PMVMatrix4f pmv = new PMVMatrix4f(); - if( null != layouter ) { + if( 0 == shapes.size() ) { + box.resize(0, 0, 0); + } else if( null != layouter ) { for(final Shape s : shapes) { if( needsRMs && null == firstGS && s instanceof GraphShape ) { firstGS = (GraphShape)s; |