object:setScrollWidth()

Type Function
Library widget.*
Return value Number
Revision 2017.3082
Keywords widget, scroll view, ScrollViewWidget, setScrollWidth
See also object:setScrollHeight()
[widget.newScrollView( )]api.library.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 )