Methods

adjustBBoxesForRTL

static

adjustBBoxesForRTL(viewportBBox, anchorBBox, menuSize)

Adjust the bounding boxes used to position the widget div to deal with RTL goog.ui.Menu positioning. In RTL mode the menu renders down and to the left of its start point, instead of down and to the right. Adjusting all of the bounding boxes accordingly allows us to use the same code for all widgets. This function in-place modifies the provided bounding boxes.

Parameter

viewportBBox

Object

The bounding rectangle of the current viewport, in window coordinates.

Value must not be null.

anchorBBox

Object

The bounding rectangle of the anchor, in window coordinates.

Value must not be null.

menuSize

goog.math.Size

The size of the menu that is inside the widget div, in window coordinates.

Value must not be null.

getSize

static

getSize(menu) returns goog.math.Size

Get the size of a rendered goog.ui.Menu.

Parameter

menu

goog.ui.Menu

The menu to measure.

Value must not be null.

Returns

non-null goog.math.Size Object with width and height properties.