Scroll View#

class UI.ScrollView()#

A view onto a panel that is larger than the space available for it, with scroll bars to move around it. Added to a UI.Canvas or a UI.Panel.

Note

Add the elements to UI.ScrollView.getContent(), not to the scroll view itself. Giving the content a layout and setting its size fitter to the preferred size is the simplest way to have it grow to hold what is put in it.

Base class: UI.Object
ScrollView.getContent()#

The panel that is scrolled, which the elements to show are added to.

Property:

Read-only, cannot be set

Return type:

UI.Panel

ScrollView.getHorizontal()#
ScrollView.setHorizontal(value)#

Whether the view can be scrolled from side to side.

Property:

Can be read or written

Return type:

boolean

ScrollView.getVertical()#
ScrollView.setVertical(value)#

Whether the view can be scrolled up and down.

Property:

Can be read or written

Return type:

boolean