determine box height from leaf style