Skip to content

How to clear ScrollArea state from memory? #1103

Answered by emilk
BctfN0HUK7Yg asked this question in Q&A
Discussion options

You must be logged in to vote

If it is good enough to clear the ScrollArea after painting it, you could do:

let response = ScrollArea::vertical().show().response;
ui.ctx().memory().data.remove(response.id);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BctfN0HUK7Yg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants