Working with General Visual Components > Classes > Control > Control.updateSize
updateSize ();
The updateSize method refreshes the component sizes on changing the sizes of the container that contains the component.
The example of property use is given in the Example of Creating the ScrollBar Component page.
See also: