Bugzilla – Bug 1143558
scrollbar resets when selecting role
Last modified: 2022-02-24 14:52:04 UTC
In the dialog to select the role I have to scroll down to see all roles. When I then select a role the scrollbar jumps back to the top and the selected role is not even visible anymore.
Created attachment 812237 [details] screenshot before selecting role
Created attachment 812238 [details] YaST logs files
Martin, please, could you have a look? I am not sure if this is something we can easily fix. Thanks.
Thanks for the report. Yes. It's because libyui has no concept of a scrollable VBox. Therefore we simulate one with a RichText widget[1]. When you select a role, we have to replace the text to put the selected "radio button" in the right place. Replacing resets the scroll bar. [1]: https://github.com/yast/yast-installation/blob/b7e93db8a3223d3d47e989e491348f2761c07430/src/lib/installation/select_system_role.rb#L270
One way to fix this would be adding a scrollable VBox to libyui. We can add it to the backlog and do it, because we have seen sometimes it is needed.
We could also make the RichText widget remember the scrollbar when setting new content.
This is now fixed. See https://github.com/yast/yast-installation/pull/827