resolveStickyStack
Overview
Resolve the layout for a stack of sticky bars pinned to one edge.
Signature
resolveStickyStack(bars, edge)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| bars | StickyStackBar[] | yes | Bars in stack order from the pinned edge outward (for the top edge, top to bottom; for the bottom edge, bottom to top). |
| edge | "top" | "bottom" | no | The viewport edge the stack pins to. Defaults to top. |
Returns
The per-bar layout and the visible extent.
Source
client/lib/utils/stickyStackLayout.js:45