The tree adapts dynamically to different size of labels