scrollWidth property

int get scrollWidth

The Element.scrollWidth read-only property is a measurement of the width of an element's content, including content not visible on the screen due to overflow.

The scrollWidth value is equal to the minimum width the element would require in order to fit all the content in the viewport without using a horizontal scrollbar. The width is measured in the same way as Element.clientWidth: it includes the element's padding, but not its border, margin or vertical scrollbar (if present). It can also include the width of pseudo-elements such as or . If the element's content can fit without a need for horizontal scrollbar, its scrollWidth is equal to Element.clientWidth

Note: This property will round the value to an integer. If you need a fractional value, use element.getBoundingClientRect.

Implementation

external int get scrollWidth;