ui.Tooltip.ElementTooltipPosition Extends goog.positioning.AnchoredPosition
Popup position implementation that positions the popup (the tooltip in this case) based on the element position. It's positioned below the element 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 focus changes.

Inheritance

Constructor

goog.ui.Tooltip.ElementTooltipPosition(element)

Parameters

element : Element
The element to anchor the popup at.

Instance Methods

Public Protected Private
reposition(elementpopupCorneropt_margin)
Repositions the popup based on element position.
Arguments:
element : Element
The DOM element of the popup.
popupCorner : goog.positioning.Corner
The corner of the popup element that should be positioned adjacent to the anchorElement.
opt_margin : goog.math.Box=
A margin specified in pixels.
code »
reposition(movableElementmovableCorneropt_marginopt_preferredSize)
Repositions the movable element.
Arguments:
movableElement : Element
Element to position.
movableCorner : goog.positioning.Corner
Corner of the movable element that should be positioned adjacent to the anchored element.
opt_margin : goog.math.Box=
A margin specifin pixels.
opt_preferredSize : goog.math.Size=
PreferredSize of the movableElement (unused in this class).
code »
reposition(movableElementcorneropt_marginopt_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 »

Instance Properties

constructor :
No description.
Code »
constructor :
No description.
Code »
corner :
Corner of anchored element the movable element should be positioned at.
Code »
element :
Element the movable element should be anchored against.
Code »
overflow_ :
Overflow handling mode. Defaults to IGNORE if not specified. Bitmap, .
Code »

Static Properties

goog.ui.Tooltip.ElementTooltipPosition.superClass_ :
No description.
Code »

Package ui.Tooltip

Package Reference