Repository navigation
Bug with Column and Tabs #6576
Replies: 1 comment
|
For this layout, keep the tab shell at a bounded height and put vertical scrolling inside each tab, rather than on the outer Column.
Using the Tabs API from your 0.85.3 example, the structure can be: import flet as ft
def main(page: ft.Page):
page.add(
ft.Tabs(
length=2,
expand=True,
content=ft.Column(
expand=True,
controls=[
ft.TabBar(tabs=[
ft.Tab(label="Tab 1"),
ft.Tab(label="Tab 2"),
]),
ft.TabBarView(
expand=True,
controls=[
ft.Column(
scroll=ft.ScrollMode.AUTO,
controls=[ft.Text(f"Row {i}") for i in range(100)],
),
ft.Column(
scroll=ft.ScrollMode.AUTO,
controls=[ft.Text(f"Other {i}") for i in range(100)],
),
],
),
],
),
)
)
ft.run(main)You can retain your outer If the entire tab control must sit inside a larger scrolling page, give the Tabs a finite |
Uh oh!
There was an error while loading. Please reload this page.
Question
Good afternoon. In this moment, I test the new features in flet 0.85.3, and I discover a problem with the columns and the Tabs. When I use the example of tabs, with a column, works fine, but if I add the scroll property in the column, the tabs get a infinite scroll. this problem is not generated with a container or other element. I attach the test code. Thanks
Code sample
Error message
No response
------------------------------------------------------
All reactions