Closure Library API Documentation
Go to class or file:
positioning.AbstractPosition
Extends
Abstract position object. Encapsulates position and overflow handling.
Useful links
Source Code
Git
Inheritance
goog.positioning.AbstractPosition
Many (7)
goog.positioning.AbstractPosition
Constructor
goog.positioning.AbstractPosition(
)
Instance Methods
Public
Protected
Private
Defined in
goog.positioning.AbstractPosition
reposition
(
movableElement
,
corner
,
opt_margin
,
opt_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 positioning
Package Reference