When scrolling in a dockable window containing a tree view, the horizontal scroll bar considers the maximum width of all the currently-visible rows, rather than the maximum width of all rows. This makes the width of the scrollbar handle vary or even makes the entire scrollbar hide when the window view only includes short rows.
Example here [GIF].