If the node is resizable, will set its layout bounds to the specified width and height. If the node is not resizable, this method is a no-op.
This method should generally only be called by parent nodes from their layoutChildren() methods. All Parent classes will automatically resize resizable children, so resizing done directly by the application will be overridden by the node's parent, unless the child is unmanaged.
Parents are responsible for ensuring the width and height values fall within the resizable node's preferred range. The autosize() method may be used if the parent just needs to resize the node to its preferred size.
width | the target layout bounds width | |
height | the target layout bounds height |
isResizable(), getContentBias(), autosize(), minWidth(double), minHeight(double), prefWidth(double), prefHeight(double), maxWidth(double), maxHeight(double), getLayoutBounds()
Diagram: Node