Resize toolbar when device orientation changes.