diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/GraphShape.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/GraphShape.java b/src/graphui/classes/com/jogamp/graph/ui/GraphShape.java index 3d1a7f2c8..46f2d0a5b 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/GraphShape.java +++ b/src/graphui/classes/com/jogamp/graph/ui/GraphShape.java @@ -255,12 +255,12 @@ public abstract class GraphShape extends Shape { protected void addBorderOutline() { final OutlineShape shape = new OutlineShape(); - final Padding dist = null != getPadding() ? getPadding() : new Padding(); - final float x1 = box.getMinX() - dist.left; - final float x2 = box.getMaxX() + dist.right; - final float y1 = box.getMinY() - dist.bottom; - final float y2 = box.getMaxY() + dist.top; - final float z = box.getCenter().z(); // 0; // box.getMinZ() + 0.025f; + final Padding p = null != getPadding() ? getPadding() : new Padding(); + final float x1 = box.getMinX() - p.left; + final float x2 = box.getMaxX() + p.right; + final float y1 = box.getMinY() - p.bottom; + final float y2 = box.getMaxY() + p.top; + final float z = box.getMaxZ(); // on top { // Outer OutlineShape as Winding.CCW. shape.moveTo(x1, y1, z); |