goog.positioning.ClientPosition
Classgoog.positioning.ClientPosition
> goog.positioning.AbstractPosition
goog.positioning.ClientPosition(arg1, opt_arg2)
Encapsulates a popup position where the popup is positioned relative to the window (client) coordinates. This calculates the correct position to use even if the element is relatively positioned to some other element. This is for trying to position an element at the spot of the mouse cursor in a MOUSEMOVE event. Just use the event.clientX and event.clientY as the parameters.
arg1
{number
|goog.math.Coordinate
}
opt_arg2
{number
=}
.coordinate
{goog.math.Coordinate
}Coordinate to position popup at.
.reposition(movableElement, movableElementCorner, opt_margin,
opt_preferredSize)
Repositions the popup according to the current state
movableElement
{Element
}
movableElementCorner
{goog.positioning.Corner
}
opt_margin
{goog.math.Box
=}
opt_preferredSize
{goog.math.Size
=}