Toolbar height calculation is faulty in multiple cases