Auto resizing for grids based on collapsing and resizing of other components