getPos

public function getPos(n:Element/String, ro:Element):object
Returns the absolute x, y position of a node. The position will be returned in a object with x, y fields.

Params

Name Type Description
n Element/String HTML element or element id to get x, y position from.
ro Element Optional root element to stop calculations at.

Returns

object Absolute position of the specified element object with x, y fields.