Skip to content

ui.log doesn't scroll to bottom when pushing multiple lines at once #4830

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

Open
falkoschindler opened this issue Jun 2, 2025 · 0 comments
Open
Labels
bug Type/scope: A problem that needs fixing 🟡 medium Priority: Relevant, but not essential

Comments

@falkoschindler
Copy link
Contributor

As shown in the following example, the log view stops scrolling to the bottom when multiple lines are pushed at once.

from nicegui import ui
import time

log = ui.log().classes('w-full h-30vh')

def write_log():
    log.push(f'Log entry at {time.strftime("%H:%M:%S")}')
    log.push(f'Log entry at {time.strftime("%H:%M:%S")}')
    log.push(f'Log entry at {time.strftime("%H:%M:%S")}')
    log.push(f'Log entry at {time.strftime("%H:%M:%S")}')

ui.timer(0.5, write_log, active=True)

ui.run()

Originally posted by @pandabearcodes in #3909 (reply in thread)

@falkoschindler falkoschindler added bug Type/scope: A problem that needs fixing 🟡 medium Priority: Relevant, but not essential labels Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type/scope: A problem that needs fixing 🟡 medium Priority: Relevant, but not essential
Projects
None yet
Development

No branches or pull requests

1 participant