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

Function isFixed

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

* Check if the given element is fixed or is inside a fixed parent * @method * @memberof Popper.Utils * @argument {Element} element * @argument {Element} customContainer * @returns {Boolean} answer to "isFixed?"

(element)

Source from the content-addressed store, hash-verified

3533
3534
3535function isFixed(element) {
3536 var nodeName = element.nodeName;
3537
3538 if (nodeName === 'BODY' || nodeName === 'HTML') {
3539 return false;
3540 }
3541
3542 if (getStyleComputedProperty(element, 'position') === 'fixed') {
3543 return true;
3544 }
3545
3546 var parentNode = getParentNode(element);
3547
3548 if (!parentNode) {
3549 return false;
3550 }
3551
3552 return isFixed(parentNode);
3553}
3554/**
3555 * Finds the first parent of an element that has a transformed property defined
3556 * @method

Callers 1

getBoundariesFunction · 0.85

Calls 2

getStyleComputedPropertyFunction · 0.85
getParentNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…