Component resizing not working

Auto layout is a way to go