Skip to content
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

Merged
merged 2 commits into from
Nov 14, 2019

Conversation

dgdavid
Copy link
Member

@dgdavid dgdavid commented Nov 6, 2019

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)

vscroll_not_restored

After (toggle)

vscroll_restored

@coveralls
Copy link

coveralls commented Nov 6, 2019

Coverage Status

Coverage increased (+0.03%) to 23.946% when pulling a1b2da0 on restore-vscroll-position into 61db415 on master.

@dgdavid dgdavid force-pushed the restore-vscroll-position branch 3 times, most recently from 5279270 to 81c1181 Compare November 11, 2019 12:34
@dgdavid dgdavid marked this pull request as ready for review November 14, 2019 09:59
Copy link
Contributor

@shundhammer shundhammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shundhammer
Copy link
Contributor

Oops; one thing left to check: Does yast-installation require the libyui version that introduces this property?

@dgdavid
Copy link
Member Author

dgdavid commented Nov 14, 2019

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 libyui < 3.8.2 and this PR actually requires a libyui > 3.7.0. In fact, originally the libyui < 3.7.0 conflict was declared, but #827 introduced a higher conflict. so...

@dgdavid dgdavid merged commit 9967c22 into master Nov 14, 2019
@dgdavid dgdavid deleted the restore-vscroll-position branch November 14, 2019 11:23
@yast-bot
Copy link
Contributor

✔️ Public Jenkins job #77 successfully finished
✔️ Created OBS submit request #748644

@yast-bot
Copy link
Contributor

✔️ Internal Jenkins job #18 successfully finished
✔️ Created IBS submit request #205124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants