Fix tree bounds extending the wrong direction in right-to-left.