Nuget update bootstrap (disruptive)

This commit is contained in:
Samuele E. Locatelli
2019-12-31 09:56:39 +01:00
parent 7d809aeb97
commit 623eff13a0
122 changed files with 40029 additions and 9343 deletions
+25
View File
@@ -0,0 +1,25 @@
import getStyleComputedProperty from './getStyleComputedProperty';
import getParentNode from './getParentNode';
/**
* 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?"
*/
export default function isFixed(element) {
const nodeName = element.nodeName;
if (nodeName === 'BODY' || nodeName === 'HTML') {
return false;
}
if (getStyleComputedProperty(element, 'position') === 'fixed') {
return true;
}
const parentNode = getParentNode(element);
if (!parentNode) {
return false;
}
return isFixed(parentNode);
}