NuGet Update popper + update Steamware

This commit is contained in:
Samuele E. Locatelli
2019-11-29 18:06:23 +01:00
parent 261f5a883b
commit 71ace56042
108 changed files with 4365 additions and 666 deletions
@@ -0,0 +1,16 @@
/**
* Get CSS computed property of the given element
* @method
* @memberof Popper.Utils
* @argument {Eement} element
* @argument {String} property
*/
export default function getStyleComputedProperty(element, property) {
if (element.nodeType !== 1) {
return [];
}
// NOTE: 1 DOM access here
const window = element.ownerDocument.defaultView;
const css = window.getComputedStyle(element, null);
return property ? css[property] : css;
}