Skip to content

How to create a log output widget with auto scroll to bottom? #2301

Answered by ogoffart
AllenDang asked this question in Q&A
Discussion options

You must be logged in to vote

That's a feature that make sense. I wonder what API it should have.

Right now, you will have to set the content-y manually to go to the end like so:

                log_view.viewport-y = min(0px, - log_view.viewport-height + log_view.visible-height);

Full example

Replies: 2 comments 2 replies

Comment options

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

Answer selected by AllenDang
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants