Skip to content

QScrollArea cannot programmatically scroll to bottom when contents change #11861

Discussion options

You must be logged in to vote

You are right, there is something strange with the time needed to render the new message.
Updated the codepen here: https://codepen.io/pdanpdan/pen/rNGdqjo?editors=1010
But I need to investigate why it renders so late

I got it - the scroll size is calculated using a QResizeObserver, and it has a default debounce of 100ms, so any delay over 100ms should be good.

Replies: 13 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ivanjaros
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by metalsadman
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pdanpdan
Comment options

pdanpdan Jan 3, 2022
Collaborator

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #11860 on January 02, 2022 13:50.