goog.ui.Tooltip.CursorTooltipPosition
Classgoog.ui.Tooltip.CursorTooltipPosition
> goog.positioning.ViewportPosition
> goog.positioning.AbstractPosition
goog.ui.Tooltip.CursorTooltipPosition(arg1, opt_arg2)
Popup position implementation that positions the popup (the tooltip in this case) based on the cursor position. It's positioned below the cursor to the right if there's enough room to fit all of it inside the Viewport. Otherwise it's displayed as far right as possible either above or below the element. Used to position tooltips triggered by the cursor.
arg1
{number
|!goog.math.Coordinate
}
opt_arg2
{number
=}
.reposition(element, popupCorner, opt_margin)
Repositions the popup based on cursor position.
element
{Element
}
popupCorner
{goog.positioning.Corner
}
opt_margin
{goog.math.Box
=}