Fantom

 

class

fwt::ScrollPane

sys::Obj
  fwt::Widget
    fwt::Pane
      fwt::ContentPane
        fwt::ScrollPane

@Js
@Serializable { simple=false collection=false }

ScrollPane displays a scrollbars to scroll its content child. If the ScrollPane is smaller than the preferred size of the content child, then scrollbars are shown. If the ScrollPane is bigger than the preferred area, the content child will fill the available space.

Slots

borderSource

const Bool border := true

Draw a border around the widget. Default is true. This field cannot be changed once the widget is constructed.

hbarSource

@Transient
readonly ScrollBar hbar

Horizontal scroll bar.

makeSource

new make(|This|? f := null)

Default constructor.

onLayoutSource

override Void onLayout()

Overrides fwt::ContentPane.onLayout

Doc inherited from fwt::Pane.onLayout

Handle the layout event by setting the bounds on all children.

vbarSource

@Transient
readonly ScrollBar vbar

Vertical scroll bar.