pl.wendigo.chrome.api.layertree / StickyPositionConstraint

StickyPositionConstraint

data class StickyPositionConstraint (source)

Sticky position constraints.

Link
LayerTree#StickyPositionConstraint type documentation.

Constructors

<init>

StickyPositionConstraint(stickyBoxRect: Rect, containingBlockRect: Rect, nearestLayerShiftingStickyBox: LayerId? = null, nearestLayerShiftingContainingBlock: LayerId? = null)

Sticky position constraints.

Properties

containingBlockRect

val containingBlockRect: Rect

Layout rectangle of the containing block of the sticky element

nearestLayerShiftingContainingBlock

val nearestLayerShiftingContainingBlock: LayerId?

The nearest sticky layer that shifts the containing block

nearestLayerShiftingStickyBox

val nearestLayerShiftingStickyBox: LayerId?

The nearest sticky layer that shifts the sticky box

stickyBoxRect

val stickyBoxRect: Rect

Layout rectangle of the sticky element before being shifted