scrollHeight property
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 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;