MCPcopy Index your code
hub / github.com/docker/getting-started / getReferenceOffsets

Function getReferenceOffsets

app/src/static/js/react-bootstrap.js:3716–3720  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

3714
3715
3716function 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

Callers 2

updateFunction · 0.85
applyStyleOnLoadFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…