bugfix, add auto fit orientation change