scrollHeight property

int get scrollHeight
inherited

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

The user's viewport is an element with four regions labeled padding-top,
border-top, border-bottom, padding-bottom. The scroll height goes from the
container's padding top to the end of the padding bottom, well beyond the
top and bottom of the viewport.

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

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

Implementation

external int get scrollHeight;