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

Function isOffsetContainer

app/src/static/js/react-bootstrap.js:3198–3206  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

3196}
3197
3198function isOffsetContainer(element) {
3199 var nodeName = element.nodeName;
3200
3201 if (nodeName === 'BODY') {
3202 return false;
3203 }
3204
3205 return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element;
3206}
3207/**
3208 * Finds the root node (document, shadowDOM root) of the given element
3209 * @method

Callers 1

findCommonOffsetParentFunction · 0.85

Calls 1

getOffsetParentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…