Repository navigation
Stop the Settings tree from jittering - #71292
Conversation
|
That strategy sounds fine and I'd really like to take it for March so I'll test it today. I don't really understand why what the settings editor does is so strange though. I end up with elements with the same IDs, why does the tree care that the objects are different? |
Dynamic heights are a list view concept, about two abstraction levels below the tree. As far as the list view is concerned, inserted model elements are always new, even if you delete the same amount ( We could perhaps bring the concept of preserving provisional heights based on the same identity up to the actual list widget, since it already has the notion of a identity provider which could correlate items... but let's do that once the second user comes around. 😉 |
roblourens It's tough to fix #68385 automagically, because you're effectively replacing the whole model all the time. But check out this idea:
If your virtual delegate would get called back with the actual measured height, it could start caching them for future
getHeightcalls. For the cache, we can useWeakMap, making sure we keep its size in check. This is what this PR implements, which seems to work great. What do you think?I've set this to April in case you think this is too risky. But feel free to move to March if you like it and everything goes well in your testing of it.