Adjust the layout.