Widget scroll#5938
Conversation
WIP, still some issues to work on : - bug with embedded containers - performances seem a little off (it's better but not as much as I hoped) - comments to add (I will do when all other issues are resolved) The widget.Scroll is like a container.Scroll but it only refresh the displayed widget instead of all widget. Thus, it performs better than its counterpart if many widgets are added.
Jacalz
left a comment
There was a problem hiding this comment.
Thanks for the PR. The scroller that we are using is already a widget so would it not make sense to try and improve the performance of that instead of adding a new scrolling widget?
FYI: I would recommend making this "draft" while it is WIP.
|
I don't really understand what this is doing - but it seems to have some assumptions that don't hold: a) A scroll can never change it's available directions It is unclear why you are treating a container as a special case. If you can explain the /how/ of the new optimised scroll that doesnt have to know child sizes then it might help us to offer suggestions.
As mentioned above please explain what the strategy is otherwise it's hard to say why performance is not what you'd expect. |
Description:
The container.Scroll has a performance pitfall because it render every widgets even thoses that are not displayed.
The widget.Scroll solves that issue.
This PR is in WIP.
This is a prototype that demonstrates the design, I intend to improve it it with any given help.
There is still some issues with embedded containers (I can work on it) and the performances aren't as good as hoped (some help is welcome here).
It's my first PR for Fyne so I'm pretty sure there is still some work to do on my PR and it souldn't be pushed as it is.
Fixes #5914
Checklist:
Where applicable: