-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sticky Scroll Tree View #198320
Sticky Scroll Tree View #198320
Conversation
handling of tree node indices and rendered elements
@alexr00 Please have a look at the changes I made in TreeView.ts. The change is that a TreeItem can now be rendered multiple times. A rendered item can be identified by it's handle and templateData. |
improve expand/collapse behavior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
treeView.ts
changes look good!
improved sticky scrolling configuration, and refactored code for readability and efficiency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting there, and feels really good so far.
Here's a bug:
Screen.Recording.2023-11-17.at.14.56.29.mov
Also, did you think about the "now renderers need to worry about renderElement
being called twice (once normal and once sticky)" problem that we talked about? We only fixed it on the TreeRenderer._renderedElements
property, though this is an established pattern across many tree renderers in the workbench. We need to go around those renderers and understand if they will hit issues as well.
This is the list of Renderers that probably need to be adapted:
// cc @lszomoru |
padding adjustments
AbstractTree's getRelativeTop call accordingly
Sticky Scroll in Trees! #161207