UNPKG

@atlaskit/navigation-system

Version:

The latest navigation system for Atlassian apps.

7 lines • 230 B
/** * Returns the computed width of an element in pixels. */ export var getPixelWidth = function getPixelWidth(element) { // Always returns an integer. Returns 0 if element is hidden / removed. return element.offsetWidth; };