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

Function getFixedPositionOffsetParent

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

* Finds the first parent of an element that has a transformed property defined * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} first transformed parent or documentElement

(element)

Source from the content-addressed store, hash-verified

3561
3562
3563function getFixedPositionOffsetParent(element) {
3564 // This check is needed to avoid errors in case one of the elements isn't defined for any reason
3565 if (!element || !element.parentElement || isIE()) {
3566 return document.documentElement;
3567 }
3568
3569 var el = element.parentElement;
3570
3571 while (el && getStyleComputedProperty(el, 'transform') === 'none') {
3572 el = el.parentElement;
3573 }
3574
3575 return el || document.documentElement;
3576}
3577/**
3578 * Computed the boundaries limits and return them
3579 * @method

Callers 2

getBoundariesFunction · 0.85
getReferenceOffsetsFunction · 0.85

Calls 2

isIEFunction · 0.85
getStyleComputedPropertyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…