limitedScrollPane

inline fun Table.limitedScrollPane(limitW: Boolean = true, limitH: Boolean = limitW, style: ScrollPane.ScrollPaneStyle = Styles.defaultPane, constructor: Table.(ScrollPane) -> Unit): Cell<ScrollPane>

Creates a limited scroll pane constructed by a lambda and returns the created cell.

Such a scroll pane will not expand in the specified directions unless it's explicitly told to. This allows to limit the viewport without hard coding the size.

When using this method, you must somehow regulate the size of the pane. This can be done using Cell.fill, Cell.grow, Cell.size and other similar methods.

Parameters

limitW

whether to limit the width.

limitH

whether to limit the height. Defaults to limitH.