Home | History | Annotate | Download | only in ui

Lines Matching defs:anchorBox

53      * @param {!Element|!AnchorBox} anchor
65 * @param {!Element|!AnchorBox} anchor
77 * @param {!Element|!AnchorBox} anchor
142 * @param {!Element|!AnchorBox} anchorElement
162 var anchorBox = anchorElement instanceof AnchorBox ? anchorElement : anchorElement.boxInWindow(window);
163 anchorBox = anchorBox.relativeToElement(container);
167 var roomAbove = anchorBox.y;
168 var roomBelow = totalHeight - anchorBox.y - anchorBox.height;
172 if ((anchorBox.y > newElementPosition.height + arrowHeight + borderRadius) || (arrowDirection === WebInspector.Popover.Orientation.Bottom))
173 newElementPosition.y = anchorBox.y - newElementPosition.height - arrowHeight;
176 newElementPosition.height = anchorBox.y - borderRadius * 2 - arrowHeight;
185 newElementPosition.y = anchorBox.y + anchorBox.height + arrowHeight;
198 if (anchorBox.x + newElementPosition.width < totalWidth) {
199 newElementPosition.x = Math.max(borderRadius, anchorBox.x - borderRadius - arrowOffset);
205 var arrowRightPosition = Math.max(0, totalWidth - anchorBox.x - anchorBox.width - borderRadius - arrowOffset);
206 arrowRightPosition += anchorBox.width / 2;
217 this._popupArrowElement.style.left = Math.max(0, anchorBox.x - borderRadius * 2 - arrowOffset) + "px";
218 this._popupArrowElement.style.left += anchorBox.width / 2;
233 * @param {function(!Element, !Event):(!Element|!AnchorBox|undefined)} getAnchor
273 var box = this._hoverElement instanceof AnchorBox ? this._hoverElement : this._hoverElement.boxInWindow();