The goog.positioning.AbsolutePosition Class

goog.positioning.AbsolutePosition
> goog.positioning.AbstractPosition

goog.positioning.AbsolutePosition(arg1, opt_arg2)

Encapsulates a popup position where the popup absolutely positioned by setting the left/top style elements directly to the specified values. The position is generally relative to the element's offsetParent. Normally, this is the document body, but can be another element if the popup element is scoped by an element with relative position.

arg1 {number|!goog.math.Coordinate}
Left position or coordinate.
opt_arg2 {number=}
Top position.

.coordinate {goog.math.Coordinate}

Coordinate to position popup at.

.reposition(movableElement, movableCorner, opt_margin, opt_preferredSize)

Repositions the popup according to the current state.

movableElement {Element}
The DOM element to position.
movableCorner {goog.positioning.Corner}
The corner of the movable element that should be positioned at the specified position.
opt_margin {goog.math.Box=}
A margin specified in pixels.
opt_preferredSize {goog.math.Size=}
Prefered size of the movableElement.