Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GUI2 MP lobby: fix the game list jumping to top when a new game starts
The fix is to restore the previous scroll position after the window is laid out as a result of the new list item. I also demoted one log message from info to debug level. It was way too frequent for the info level.
- Loading branch information
Showing
4 changed files
with
45 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1935829
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.
It seems to me that this would push the currently-selected item down (potentially offscreen) if the new item happens to be above it, unless I'm missing something?
1935829
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.
This commit also seems to make it so the initially selected rows aren't scrolled to (see MP Create and the initial selection).
1935829
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.
@CelticMinstrel To be honest, I don't even care about that. Most lists in Wesnoth are static. For the few dynamic lists we have, it's not a big deal that the selected item may scroll offscreen when the list changes.
@Vultraz You're right. Fixed in 41a49f7
1935829
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.
Well, maybe the few dynamic lists we have can be made to correct for it, as well. Especially if the items are of roughly constant height.