MCPcopy Index your code
hub / github.com/deepch/RTSPtoWebRTC / getFixedPositionOffsetParent

Function getFixedPositionOffsetParent

web/static/js/bootstrap.bundle.js:2089–2099  ·  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

2087 */
2088
2089 function getFixedPositionOffsetParent(element) {
2090 // This check is needed to avoid errors in case one of the elements isn't defined for any reason
2091 if (!element || !element.parentElement || isIE()) {
2092 return document.documentElement;
2093 }
2094 var el = element.parentElement;
2095 while (el && getStyleComputedProperty(el, 'transform') === 'none') {
2096 el = el.parentElement;
2097 }
2098 return el || document.documentElement;
2099 }
2100
2101 /**
2102 * Computed the boundaries limits and return them

Callers 2

getBoundariesFunction · 0.85
getReferenceOffsetsFunction · 0.85

Calls 2

isIEFunction · 0.85
getStyleComputedPropertyFunction · 0.85

Tested by

no test coverage detected