public final void autosize ()

If the node is resizable, will set its layout bounds to its current preferred width and height. If the node is not resizable, this method is a no-op.

This method automatically queries the node's content-bias and if it's horizontal, will pass in the node's preferred width to get the preferred height; if vertical, will pass in the node's preferred height to get the width, and if null, will compute the preferred width/height independently.

See also:
isResizable(), getContentBias()