positioning.AbsolutePosition Extends goog.positioning.AbstractPosition
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.

Inheritance

Constructor

goog.positioning.AbsolutePosition(arg1opt_arg2)

Parameters

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

Instance Methods

Public Protected Private
reposition(movableElementmovableCorneropt_marginopt_preferredSize)
Repositions the popup according to the current state.
Arguments:
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.
code »
reposition(movableElementcorneropt_marginopt_preferredSize)
Repositions the element. Abstract method, should be overloaded.
Arguments:
movableElement : Element
Element to position.
corner : goog.positioning.Corner
Corner of the movable element that should be positioned adjacent to the anchored element.
opt_margin : goog.math.Box=
A margin specified in pixels.
opt_preferredSize : goog.math.Size=
PreferredSize of the movableElement.
code »

Instance Properties

constructor :
No description.
Code »
coordinate : goog.math.Coordinate
Coordinate to position popup at.
Code »

Static Properties

goog.positioning.AbsolutePosition.superClass_ :
No description.
Code »

Package positioning

Package Reference