MCPcopy Create free account
hub / github.com/microsoft/SandDance / _finalizePositionData

Function _finalizePositionData

docs/app/js/sanddance-app.js:32134–32141  ·  view source on GitHub ↗
(positionedElement, hostElement, bounds, coverTarget, doNotFinalizeReturnEdge)

Source from the content-addressed store, hash-verified

32132 });
32133}
32134function _finalizePositionData(positionedElement, hostElement, bounds, coverTarget, doNotFinalizeReturnEdge) {
32135 var finalizedElement = _finalizeElementPosition(positionedElement.elementRectangle, hostElement, positionedElement.targetEdge, bounds, positionedElement.alignmentEdge, coverTarget, doNotFinalizeReturnEdge);
32136 return {
32137 elementPosition: finalizedElement,
32138 targetEdge: positionedElement.targetEdge,
32139 alignmentEdge: positionedElement.alignmentEdge
32140 };
32141}
32142function _positionElement(props, hostElement, elementToPosition, previousPositions) {
32143 var boundingRect = props.bounds ? _getRectangleFromIRect(props.bounds) : new (0, _utilities.Rectangle)(0, window.innerWidth - (0, _utilities.getScrollbarWidth)(), 0, window.innerHeight);
32144 var positionedElement = _positionElementRelative(props, elementToPosition, boundingRect, previousPositions);

Callers 2

_positionElementFunction · 0.85
_positionCalloutFunction · 0.85

Calls 1

_finalizeElementPositionFunction · 0.85

Tested by

no test coverage detected