auto resize view.