detect toolbar height