Fix chart resizing when orientation changes.