positioning.AnchoredPosition Extends goog.positioning.AbstractPosition
Encapsulates a popup position where the popup is anchored at a corner of an element. When using AnchoredPosition, it is recommended that the popup element specified in the Popup constructor or Popup.setElement be absolutely positioned.

Inheritance

Constructor

goog.positioning.AnchoredPosition(anchorElementcorneropt_overflow)

Parameters

anchorElement : Element
Element the movable element should be anchored against.
corner : goog.positioning.Corner
Corner of anchored element the movable element should be positioned at.
opt_overflow : number=
Overflow handling mode. Defaults to IGNORE if not specified. Bitmap, .

Instance Methods

Public Protected Private
reposition(movableElementmovableCorneropt_marginopt_preferredSize)
Repositions the movable element.
Arguments:
movableElement : Element
Element to position.
movableCorner : goog.positioning.Corner
Corner of the movable element that should be positioned adjacent to the anchored element.
opt_margin : goog.math.Box=
A margin specifin pixels.
opt_preferredSize : goog.math.Size=
PreferredSize of the movableElement (unused in this class).
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 »
corner :
Corner of anchored element the movable element should be positioned at.
Code »
element :
Element the movable element should be anchored against.
Code »
overflow_ :
Overflow handling mode. Defaults to IGNORE if not specified. Bitmap, .
Code »

Static Properties

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

Package positioning

Package Reference