* 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 position mo
(state, popper, reference)
| 3714 | |
| 3715 | |
| 3716 | function getReferenceOffsets(state, popper, reference) { |
| 3717 | var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; |
| 3718 | var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference); |
| 3719 | return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition); |
| 3720 | } |
| 3721 | /** |
| 3722 | * Get the outer sizes of the given element (offset size + margins) |
| 3723 | * @method |
no test coverage detected
searching dependent graphs…