goog.ui.Popup.AnchoredViewPortPosition
Classgoog.ui.Popup.AnchoredViewPortPosition
> goog.ui.Popup.AnchoredPosition
> goog.positioning.AbstractPosition
goog.ui.Popup.AnchoredViewPortPosition
[deprecated]Deprecated. Use {@link goog.positioning.AnchoredViewportPosition} instead, this alias will be removed at the end of Q1 2009.
Encapsulates a popup position where the popup is anchored at a corner of an element. The corners are swapped if dictated by the viewport. For instance if a popup is anchored with its top left corner to the bottom left corner of the anchor the popup is either displayed below the anchor (as specified) or above it if there's not enough room to display it below. When using AnchoredPosition, it is recommended that the popup element specified in the Popup constructor or Popup.setElement be absolutely positioned.
element
{Element
}
corner
{goog.positioning.Corner
}
opt_adjust
{boolean
=}
.reposition(movableElement, corner, opt_margin, opt_preferredSize)
Inherited from goog.positioning.AbstractPosition
.
Repositions the element. Abstract method, should be overloaded.
movableElement
{Element
}
corner
{goog.positioning.Corner
}
opt_margin
{goog.math.Box
=}
opt_preferredSize
{goog.math.Size
=}