Skip to content

position

position(element): ElemPosition

Defined in: core/dom/geometry.ts:47

Returns the position of an element from the top left of the page, in pixels.

Adds up offsetLeft and offsetTop along the chain of offsetParents, so the result does not change when the page is scrolled.

HTMLElement

Element to measure.

ElemPosition