Showing many collapsable elements in a ScrollArea #4142
Unanswered
maddymakesgames
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to show a list in a ScrollArea where each entry can be opened to show more information. This list can be upwards of a thousand entries which ends up lagging the window on redraws. Because I want these to be collapsible I don't think I can use either show_viewport or show_rows as the row size can be variable and I might need to start rendering in the middle of a row.
I've seen the table library recommended for use cases like this but at a first glance it would require me to keep track of each entry's length and (with my current implementation) would likely introduce borrow checker errors or requiring cloning a list of every row's length.
Beta Was this translation helpful? Give feedback.
All reactions