Replies: 3 comments
-
Use a |
Beta Was this translation helpful? Give feedback.
-
Hi @ndonkoHenri , thank you very much for your hint. I tried to exchange the Layout element flet.Row with flet.Column(expand=True, auto_scroll=False) as you suggested but unfortunately this isn't working either. Furthermore I tried to set the auto_scroll to False and call the scroll_to(offset=-1) method for the column too, but without any success. Maybe the layout elements are not aware of the size of the Text control. Are there any working examples with Text controls that autoscroll to the bottom after an update? regards |
Beta Was this translation helpful? Give feedback.
-
You might find this useful (made by a community member). If this doesnt help, please build up a runnable code repro with the issue, so I can test locally. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Everybody,
for one of my apps I need an online console like view. The Construction is very easy: One big flet.Text Control to take the content of the IOStream as console output and below one flet.TextInput with two buttons for sending commands to the interpreter. This all works great.
What does not work right now is, that when there is new content given to the
self.console_text
Control by the data aquisition thread then the flet.Text element is not scolling to the end. The Text control does not have a method or property to define such behaviour, but the parent layout element flet.Row does.So from the docs I read, that the Row should scroll to the end when it comes to an update for one of its children if you define the auto_scroll=True. Unfortunately this is not going to happen. You have to scroll down manually which is very annoying for a console like app.
Furthermore I tried to use the scroll_to(offset=-1, duration=500) method of the Row along with auto_scroll=False each time the content of the Text control is updated. Unfortunately this isn't working either.
Any good ideas?
Here is the code:
Thanks in advance.
cheers
Chris
Beta Was this translation helpful? Give feedback.
All reactions