PIM-2168 Prevent the tree switch from hiding categories at the bottom of the list