detect toolbar height automatically