refactor getStatusbarHeight