Positions a panel next to an anchor, inside the viewport.
Positions a panel next to an anchor, inside the viewport.
(compute {:keys [placement] :as request})Computes the position of a panel next to its anchor.
Returns {:x :y :final-placement :max-height}. A :max-height in :panel caps the result.
Computes the position of a panel next to its anchor.
Returns {:x :y :final-placement :max-height}. A `:max-height` in `:panel` caps the result.The smallest max-height a panel gets, in pixels.
The smallest max-height a panel gets, in pixels.
Each placement: the edge rule on each axis, the placement it flips to and the axis the flip moves.
:after and :before put the panel past the anchor, :start and :end align it with the anchor.
Each placement: the edge rule on each axis, the placement it flips to and the axis the flip moves. `:after` and `:before` put the panel past the anchor, `:start` and `:end` align it with the anchor.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |