StickyPositionConstraint

data class StickyPositionConstraint(stickyBoxRect: Rect, containingBlockRect: Rect, nearestLayerShiftingStickyBox: LayerId?, nearestLayerShiftingContainingBlock: LayerId?)

Sticky position constraints.

Constructors

StickyPositionConstraint
Link copied to clipboard
fun StickyPositionConstraint(stickyBoxRect: Rect, containingBlockRect: Rect, nearestLayerShiftingStickyBox: LayerId? = null, nearestLayerShiftingContainingBlock: LayerId? = null)

Properties

containingBlockRect
Link copied to clipboard
val containingBlockRect: Rect
Layout rectangle of the containing block of the sticky element
nearestLayerShiftingContainingBlock
Link copied to clipboard
val nearestLayerShiftingContainingBlock: LayerId? = null
The nearest sticky layer that shifts the containing block
nearestLayerShiftingStickyBox
Link copied to clipboard
val nearestLayerShiftingStickyBox: LayerId? = null
The nearest sticky layer that shifts the sticky box
stickyBoxRect
Link copied to clipboard
val stickyBoxRect: Rect
Layout rectangle of the sticky element before being shifted

Sources

jvm source
Link copied to clipboard