UNPKG

@atlaskit/navigation-system

Version:

The latest navigation system for Atlassian apps.

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