object:setScrollHeight()

Type Function
Library widget.*
Return value Number
Revision 2017.3060
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 )