* Get's the alignment data for the given information. This only really matters if the positioning is Auto. * If it is auto then the alignmentEdge should be chosen based on the target edge's position relative to * the center of the page.
(positionData, target, boundingRect, coverTarget, alignTargetEdge)
| 32019 | * If it is auto then the alignmentEdge should be chosen based on the target edge's position relative to |
| 32020 | * the center of the page. |
| 32021 | */ function _getAlignmentData(positionData, target, boundingRect, coverTarget, alignTargetEdge) { |
| 32022 | if (positionData.isAuto) positionData.alignmentEdge = getClosestEdge(positionData.targetEdge, target, boundingRect); |
| 32023 | positionData.alignTargetEdge = alignTargetEdge; |
| 32024 | return positionData; |
| 32025 | } |
| 32026 | function getClosestEdge(targetEdge, target, boundingRect) { |
| 32027 | var targetCenter = _getCenterValue(target, targetEdge); |
| 32028 | var boundingCenter = _getCenterValue(boundingRect, targetEdge); |
no test coverage detected