autopan to avoid searchbar overlap