utils/dom/getpositionedancestor
module
Functions
-
getPositionedAncestor( [ element ] ) → null | HTMLElement
module:utils/dom/getpositionedancestor~getPositionedAncestor
For a given element, returns the nearest ancestor element which CSS position is not "static".
Parameters
[ element ] : HTMLElement
The native DOM element to be checked.
Returns
null | HTMLElement