-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save and restore properly the proposal vertical scroll #825
Conversation
05f8150
to
1c733b2
Compare
5279270
to
81c1181
Compare
81c1181
to
a1b2da0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Oops; one thing left to check: Does yast-installation require the libyui version that introduces this property? |
Yes, it does. There is a conflict with |
✔️ Public Jenkins job #77 successfully finished |
✔️ Internal Jenkins job #18 successfully finished |
The problem
The proposal installation summary back to the top after performing any change, not preserving the scroll.
Why?
The proposal summary, which is being held by a
RichText
widget, is re-drawn after making a change. So, it's actually new content.The solution
To use the new
:VScrollValue
property added to the libyui RichText widget as part of the YaST UI improvements. Taking into account that the content could be longer or shorter after each change, the solution is not completely perfect but it's perfect enough for most of the time.Test
Tested manually via driver update in both, Qt and ncurse.
Screencasts
Before (toggle)
After (toggle)