Home | History | Annotate | Download | only in front-end

Lines Matching refs:height

35  * Rectangles are Objects: {x: xValue, y: yValue, width: widthValue, height: heightValue}.
109 var clippingBox = {x: 0, y: 0, width: targetDocumentElement.clientWidth, height: targetDocumentElement.clientHeight};
115 var anchorBox = {x: anchorPosition.x, y: anchorPosition.y, width: anchorElement.offsetWidth, height: anchorElement.offsetHeight};
116 var elementBox = {x: element.totalOffsetLeft, y: element.totalOffsetTop, width: element.offsetWidth, height: element.offsetHeight};
119 if (anchorBox.y - elementBox.height >= clippingBox.y)
120 newElementPosition.y = anchorBox.y - elementBox.height;
122 newElementPosition.y = Math.min(anchorBox.y + anchorBox.height, Math.max(clippingBox.y, clippingBox.y + clippingBox.height - elementBox.height));
124 if (anchorBox.x + elementBox.height <= clippingBox.x + clippingBox.height)
127 newElementPosition.x = Math.max(clippingBox.x, clippingBox.x + clippingBox.height - elementBox.height);