Hi,
I have run into an issue with a tall multiline node in an Ultratree. When the node height is greater than the height of the tree, I get a vertical scrollbar but when I try to scroll down, the display jumps to show the next node in the tree at the top of the window. So the text at the bottom of the very tall node can never be scrolled into view. I'm using the latest version and still have this issue. It only happens when a node is very tall and can't fit entirely in the window. If no single node is too tall, the tree scrolls properly.
Is this a known problem, and is there a way around it?
Thanks,
Cassio Nishiguchi
Hi Cassio,
The tree's scrolling is node-based. In other words, the scrollbar always scrolls such that a node is positioned flush against the top of the tree.
In order to achieve what you want, the scrolling would have to be pixel-based, allowing you to scroll part of a node into view. There is no way to do that.
What you should do is set up your application such that the user can resize the tree and/or ensure that no nodes are taller than the height of the entire tree.
Hi Mike, thanks for the reply. Does the UltraGrid work the same way?
Yes, it does.
Ok, thanks. We're gonna try to get around the issue by putting the tree inside a panel, and using the scrollbars on the panel instead. If you don't think that would work for any reason, I'd appreciate if you'd let me know.
I can't see any reason why this would not be possible, but it might be a little tricky. For example, what if the user clicks on a node and then navigates down with the keyboard - they could activate a node that is scrolled out of view. So you probably need to handle that case and scroll is into view.