| Function Summary | |
adjustForViewport_(?goog.math.Coordinate pos, ?goog.math.Size size, ?goog.math.Box viewport, number overflow) ⇒ ?goog.positioning.OverflowStatusAdjusts the position and/or size of an element, identified by its position and size, to fit inside the viewport. If the position or size of the element is adjusted the pos or size objects, respectively, are modified. | |
flipCorner(?goog.positioning.Corner corner) ⇒ ?goog.positioning.CornerReturns the corner opposite the given one horizontally and vertically. | |
flipCornerHorizontal(?goog.positioning.Corner corner) ⇒ ?goog.positioning.CornerReturns the corner opposite the given one horizontally. | |
flipCornerVertical(?goog.positioning.Corner corner) ⇒ ?goog.positioning.CornerReturns the corner opposite the given one vertically. | |
getEffectiveCorner(?Element element, ?goog.positioning.Corner corner) ⇒ ?goog.positioning.CornerReturns an absolute corner (top/bottom left/right) given an absolute or relative (top/bottom start/end) corner and the direction of an element. Absolute corners remain unchanged. | |
getVisiblePart_(?Element el) ⇒ ?goog.math.RectReturns intersection of the specified element and goog.style.getVisibleRectForElement for it. | |
positionAtAnchor(?Element anchorElement, ?goog.positioning.Corner anchorElementCorner, ?Element movableElement, ?goog.positioning.Corner movableElementCorner, ?goog.math.Coordinate= opt_offset, ?goog.math.Box= opt_margin, ?number= opt_overflow, ?goog.math.Size= opt_preferredSize) ⇒ ?goog.positioning.OverflowStatusPositions a movable element relative to an anchor element. The caller specifies the corners that should touch. This functions then moves the movable element accordingly. | |
positionAtCoordinate(?goog.math.Coordinate absolutePos, ?Element movableElement, ?goog.positioning.Corner movableElementCorner, ?goog.math.Box= opt_margin, ?goog.math.Box= opt_viewport, ?number= opt_overflow, ?goog.math.Size= opt_preferredSize) ⇒ ?goog.positioning.OverflowStatusPositions the specified corner of the movable element at the specified coordinate. | |