object:setScrollHeight()

Type Function
Library widget.*
Return value Number
Revision Release 2022.3683
Keywords widget, scroll view, ScrollViewWidget, setScrollHeight
See also object:setScrollWidth()
widget.newScrollView()
ScrollViewWidget

Overview

Updates the scrollable content height of a ScrollViewWidget, meaning the total amount that the user can scroll the view in the vertical direction.

Syntax

object:setScrollHeight( newHeight )
newHeight (required)

Number. The new scrollable content height.

Example

scrollView:setScrollHeight( 2000 )