major
minor
major
minor
minor
#27096
Tree does not scroll the selected node into the viewport on (external) selection
A tree's selection is only focused—that is, the viewport is scrolled until the selection is displayed—if the tree **itself** changes the value of its selection channel.
This is generally incorrect. External selection adjustments are not taken into account for focusing. Instead, the tree should focus on the selection as soon as the value of the selection channel changes.
Implementation
Currently, the listeners for the `tl:SelectionModel` and the selection channel are located in the `tl:AbstractTreeComponent`, but the logic for focusing and the `tl:TreeControl` is in the `tl:TreeComponent`.
The two components have now been merged, meaning that only the `tl:TreeComponent` remains.
Code Migration
The `tl:AbstractTreeComponent` no longer exists. Instead, the `tl:TreeComponent` should be used.
Test
- Navigate to an object whose context is located in a tree.
- The tree should display the object and show the selected node in the viewport.