setContentBounds

fun setContentBounds(bounds: Rectangle, animate: Boolean = definedExternally)(source)

Resizes and moves the window's client area (e.g. the web page) to the supplied bounds.