tree: Add enableTreeTransitions flag, and clean up _calcRowHeight