* Get offsets to the reference element * @method * @memberof Popper.Utils * @param {Object} state * @param {Element} popper - the popper element * @param {Element} reference - the reference element (the popper will be relative to this) * @param {Element} fixedPosition - is in fixed
(state, popper, reference)
| 2241 | * @returns {Object} An object containing the offsets which will be applied to the popper |
| 2242 | */ |
| 2243 | function getReferenceOffsets(state, popper, reference) { |
| 2244 | var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; |
| 2245 | |
| 2246 | var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference); |
| 2247 | return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition); |
| 2248 | } |
| 2249 | |
| 2250 | /** |
| 2251 | * Get the outer sizes of the given element (offset size + margins) |
no test coverage detected