setMaxHeight

Sets the maximum height for the floating pane in a specific mode.

This allows you to define a custom upper limit for the height of the pane when it's in the specified FloatingPaneMode.

Parameters

height

The maximum height in pixels, or null to remove any custom maximum height and revert to the default behavior.