Skip to content

Fix message history screen scrolling#1138

Merged
FilmBoy84 merged 1 commit intoOpenApoc:masterfrom
Kurtsley:list-scroll-new
Mar 26, 2023
Merged

Fix message history screen scrolling#1138
FilmBoy84 merged 1 commit intoOpenApoc:masterfrom
Kurtsley:list-scroll-new

Conversation

@Kurtsley
Copy link
Contributor

Fixes #546.

It would appear that when the ScrollBar is created in the MessageLogScreen, it uses the original Maximum value of 10 that is assigned by default. When calling the scrollMax function, it was only scrolling down by 10. This was verified by increasing this initial Maximum value and observing the ScrollBar scroll further down the message history screen. This PR fixes this problem by calling the MessageLogScreen::update function to obtain the correct Maximum value before calling scrollMax.

@FilmBoy84 FilmBoy84 merged commit 44fa33d into OpenApoc:master Mar 26, 2023
@Kurtsley Kurtsley deleted the list-scroll-new branch March 26, 2023 18:24
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.

In message history screen message list not auto scroll to newest message at bottom

2 participants