You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to make the progress bars into a scrollable container?
While I could (and should) remove progress bars as they complete that doesn't address the issue of say having a window that is N lines long but having N+M bars and hence all of the M bars at the bottom of the container becoming inaccessible.
I have looked over the implementation of progress bars and read the documentation and I do not see a quick fix given that Containers themselves are not scrollable.
Any ideas?
The text was updated successfully, but these errors were encountered:
Containers are indeed not scrollable. Technically, we can make a ScrollableContainer, although I'm not sure how that would impact the rendering performance. We would have to paint the content of the ScrollableContainer to a much larger virtual screen, and then copy over the visible region.
I think however it should be possible to use the Window that wraps the _ProgressControl and take advantage of its scrolling capabilities. Window has a vertical_scroll attribute. One thing we have to keep in mind though is that a Window will try to keep the cursor position visible, but _ProgressControl does not report a cursor position, which means that it'll always be (0,0). Because of this Window will always adapt its vertical_scroll during the rendering to make the cursor visible. So, there we have two options. Either we give Window an option to ignore the cursor position, or we adapt _ProgressControl so that it does report a cursor position, and we use that for scrolling. I think the first will give the best user experience.
I take this as a feature request. Feel free to play around with the code and create a PR. When I have some time, I'll look into this.
Is it possible to make the progress bars into a scrollable container?
While I could (and should) remove progress bars as they complete that doesn't address the issue of say having a window that is N lines long but having N+M bars and hence all of the M bars at the bottom of the container becoming inaccessible.
I have looked over the implementation of progress bars and read the documentation and I do not see a quick fix given that Containers themselves are not scrollable.
Any ideas?
The text was updated successfully, but these errors were encountered: