TodoApp tasks is unscrollable. #1991
Unanswered
applicatlat
asked this question in
Q&A
Replies: 1 comment
-
Could you post a runnable well-formatted example please? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since I have sent you a detailed explanation regarding an UI bug with a detailed code snippet and you asked me to shorten it, I shortened the this code as well due that response. Also I would like to remind you that you did not look at that code and closed it without and explanation. Here is the link of it:
#1365
Current issue:
The TodoApp self.tasks = ft.Column() that you shared on the flet.dev does not have scroll funcion. Since you recommended it to add self.expand on a listview project, I did the same and added the self.tasks = ft.Column(scroll=ft.ScrollMode.ALWAYS) but it did not work at all. I also added and init statement and took the the tasks = ft.Column to the main page and started the code via calling it from the main likewise tasks =ft.Column(scroll=ft.ScrollMode.ALWAYS), todo.TodoApp(tasks) however this did not work either. When I use
scroll=ft.ScrollMode.ALWAYS or ADAPTIVE with columns created within main it works but when called from within a class it did not work. I need your help in this. Thank you.
class TodoApp(ft.UserControl):
def build(self):
self.expand=1
self.title_tf = ft.TextField(hint_text=vn.title_str, on_submit=self.add_clicked, width=150)
self.definition_tf = ft.TextField(hint_text=vn.definition_str, on_submit=self.add_clicked, expand=1)
self.tasks = ft.Column(scroll=ft.ScrollMode.ALWAYS)
"""AS YOU """
Beta Was this translation helpful? Give feedback.
All reactions