diff options
author | Sven Gothel <[email protected]> | 2023-09-16 15:38:21 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-09-16 15:38:21 +0200 |
commit | e5de90b67efe8e8ca518159b3a73295d751764c1 (patch) | |
tree | 49b751489dda73b510e4db37abed6b8824ec0372 /src/graphui/classes/com/jogamp/graph/ui/layout/Margin.java | |
parent | 1e55d2a6a157cb9d70f7a879cc9a9bc97db5413d (diff) |
GraphUI BoxLayout: Margin is only ignored for center Alignment w/o Fill scale. {Box,Grid}Layout: Always remove Bottom-Left delta and refine API doc of incl scale behavior
GraphUI BoxLayout: Margin is only ignored for center Alignment w/o Fill scale.
Margin outside of a shape is not scaled and hence must be considered
when using Fill scale.
{Box,Grid}Layout: Always remove Bottom-Left delta
Previously we were only dropping the negative extend.
However, since our scale and center algo uses the AABBox width and height,
which excludes the bottom-left delta, we have to drop such offset.
TODO: Otherwise, we would need adjust for the bottom-left extend
when NOT centering for each direction!
This might be a useful enhancement in case one likes to drop
shapes as-is w/o centering.
{Box,Grid}Layout: Refine API doc of incl scale behavior
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/layout/Margin.java')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/layout/Margin.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/layout/Margin.java b/src/graphui/classes/com/jogamp/graph/ui/layout/Margin.java index 6e4bef169..72d366ae2 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/layout/Margin.java +++ b/src/graphui/classes/com/jogamp/graph/ui/layout/Margin.java @@ -35,7 +35,7 @@ import com.jogamp.opengl.math.FloatUtil; * The CSS margin properties are used to create space around elements, outside of any defined borders. * </p> * <p> - * Center alignment is defined via {@link Alignment} and {@link Margin} ignored on centered dimension. + * Center alignment is defined via {@link Alignment} and {@link Margin} ignored with only center {@link Alignment} w/o {@link Alignment.Bit#Fill} scale. * </p> */ public class Margin { |