Getting Started
Writing content
API Documentation
Customization
Recipes
API References Develop
@ng-doc/ui-kit / Class

NgDocPositionUtils

No documentation has been provided.

Static Methods

static

getElementPosition()

Getting the position of the element relative to the viewPort, this function is faster than BoundingClientRect, it also takes into account the change in the position of the element through transform

Presentation
static getElementPosition(element: HTMLElement | null): Point;
Parameters
NameTypeDescription
element
HTMLElement | null
Returns
Point
static

getOffsetParent()

An implementation of the element.offsetParent function, this implementation closes a bug in Firefox when it returns an offsetParent for elements with position: fixed

Presentation
static getOffsetParent(element: HTMLElement): HTMLElement | null;
Parameters
NameTypeDescription
element
HTMLElement
Returns
HTMLElement | null