The aim of getComputedStyle(element, 'position') == 'static' is to detect that element is not "positioned". HTMLElement.offsetParent returns the nearest positioned element in the containment hierarchy. element.resizeSensor.offsetParent !== element mean that element is not positioned.
(see issue #164)
Right ?
The aim of
getComputedStyle(element, 'position') == 'static'
is to detect thatelement
is not "positioned".HTMLElement.offsetParent
returns the nearest positioned element in the containment hierarchy.element.resizeSensor.offsetParent !== element
mean thatelement
is not positioned.(see issue #164) Right ?