object:setScrollWidth()

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

Overview

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

Syntax

object:setScrollWidth( newWidth )
newWidth (required)

Number. The new scrollable content width.

Example

scrollView:setScrollWidth( 900 )