Box height computation fix