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

make log.js autoscroll to bottom when page is loaded #2447

Merged
merged 1 commit into from
Jan 27, 2024
Merged

make log.js autoscroll to bottom when page is loaded #2447

merged 1 commit into from
Jan 27, 2024

Conversation

CrabzteR
Copy link
Contributor

Set log element scrollTop property to scrollHeight by default when it is initialized in mounted(), as in log.js push() method.
This makes log to scroll to its bottom when it is loaded

@falkoschindler falkoschindler added the enhancement New feature or request label Jan 27, 2024
@falkoschindler falkoschindler added this to the 1.4.13 milestone Jan 27, 2024
Copy link
Contributor

@falkoschindler falkoschindler left a comment

Choose a reason for hiding this comment

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

What a nice pull request, @CrabzteR!
Thanks a lot for spotting this issue and fixing the initial scroll position!

@falkoschindler falkoschindler merged commit 7103bb2 into zauberzeug:main Jan 27, 2024
1 check passed
@CrabzteR CrabzteR deleted the log_bottom_scroll branch January 27, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants