The goog.positioning.AbstractPosition Class

goog.positioning.AbstractPosition()

Abstract position object. Encapsulates position and overflow handling.

.reposition(movableElement, corner, opt_margin, opt_preferredSize)

Repositions the element. Abstract method, should be overloaded.

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.