ui.Popup.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.ui.Popup.AnchoredPosition(elementcorner)

Parameters

element : Element
The element to anchor the popup at.
corner : goog.positioning.Corner
The corner of the element to anchor the popup at.

Instance Methods

Public Protected Private
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 »

Package ui.Popup

Package Reference