Changed the way resizing of components works.