Skip to content

Function: resolveArrowSide() ​

ts
function resolveArrowSide(
   side, 
   element, 
   popover
): Side;

Decides which popover edge the arrow sits on. Normally the rendered side, but when the element scrolls clear of the popover along that side's axis (a left-placed popover whose element has scrolled above it), the arrow moves to the perpendicular edge so it keeps pointing at the element.

Parameters ​

ParameterType
sideSide
elementBox
popoverBox

Returns ​

Side

Released under the MIT License.