adjust autoresization.