set Max Height
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
mode
The FloatingPaneMode for which to set the maximum height. This can be FloatingPaneMode.MODE_FLOATING, FloatingPaneMode.MODE_BOTTOM, or FloatingPaneMode.MODE_SIDE.
height
The maximum height in pixels, or null
to remove any custom maximum height and revert to the default behavior.