Type Function Library widget.* Return value Number Revision Release 2021.3646 Keywords widget, scroll view, ScrollViewWidget, setSize, width, height See also object:setScrollWidth() object:setScrollHeight() widget.newScrollView() ScrollViewWidget
Updates the width and height of a ScrollViewWidget. Note that if the scrollWidth or scrollHeight were set or changed, they will be overridden and require to be set once more after this function is called.
Calling this function will mess with the x position of the scrollbar. To fix this, call object:setScrollHeight() after calling this method. If you would not like to reset the scroll height, then it might be a good idea to hide the scrollbar completely.
object:setSize( newWidth, newHeight )
Number. The new width.
Number. The new height.
scrollView:setSize( 900, 2000 )