The goog.positioning.Overflow Enum

goog.positioning.Overflow

Enum for representing position handling in cases where the element would be positioned outside the viewport.

@enum
{number}

.ADJUST_X

Try to fit horizontally in the viewport at all costs.

.ADJUST_X_EXCEPT_OFFSCREEN

If the anchor goes off-screen in the x-direction, position the movable element off-screen. Otherwise, try to fit horizontally in the viewport.

.ADJUST_Y

Try to fit vertically in the viewport at all costs.

.ADJUST_Y_EXCEPT_OFFSCREEN

If the anchor goes off-screen in the y-direction, position the movable element off-screen. Otherwise, try to fit vertically in the viewport.

.FAIL_X

If the element can't fit horizontally, report positioning failure.

.FAIL_Y

If the element can't fit vertically, report positioning failure.

.IGNORE

Ignore overflow

.RESIZE_HEIGHT

Resize the element's height to fit in the viewport.

.RESIZE_WIDTH

Resize the element's width to fit in the viewport.