sets the component size
|the component width
|the component height
|returns true if a new size differs from the previous one
The method is used in the inner logic and not intended for direct use.
To set a new size, please define new width, height values and call the resize method.