You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the opened issues and there are no duplicates
Describe the bug
When adding the new dropdown control to a page, it does not respect the expand property. It will only resize to the longest of its internal elements or a specifically defined width
Code sample
import flet as ft
def main(page: ft.Page):
new_dd = ft.Dropdown(options=[ft.dropdown.Option("Test short"),
ft.dropdown.Option("Test much longer value in box")], expand=1)
old_dd = ft.DropdownM2(options=[ft.dropdown.Option("Test short"),
ft.dropdown.Option("Test much longer value in box")], expand=1)
row = ft.Row([new_dd, old_dd])
page.add(row)
ft.app(main)
To reproduce
Create a new dropdown with the ability to expand into any parent container and set expand = True
Expected behavior
Dropdown expands to fill the parent container
Screenshots / Videos
Operating System
Windows
Operating system details
Windows 10
Flet version
0.27.4
Regression
No, it isn't
Suggestions
No response
Logs
No response
Additional details
Using expand=True and width=float("inf") works for the menu itself, but not the contents - they will then expand to be the full width of the page.
The text was updated successfully, but these errors were encountered:
For your bgcolor issue, the bgcolor property of the new dropdown just change the bgcolor of the options menu. To change the bgcolor of the dropdown:
Set true the new dropdown property: "filled= True"
Establish a bgcolor using the property: fill_color = "#your_color",
But yes there's a bug with the expansion of the new dropdown, even inside of a ResponsiveRow it stay with its default width. Just stablishing a specific width you can change it, but that moves responsiveness to leave the chat lol.
I have also discovered that when expanding the options of the new dropdown they are not animated like before - old dropdown was really nice in that regard. Not sure if that's intended or it can be solved by applying custom animations.
Duplicate Check
Describe the bug
When adding the new dropdown control to a page, it does not respect the expand property. It will only resize to the longest of its internal elements or a specifically defined width
Code sample
To reproduce
Create a new dropdown with the ability to expand into any parent container and set expand = True
Expected behavior
Dropdown expands to fill the parent container
Screenshots / Videos
Operating System
Windows
Operating system details
Windows 10
Flet version
0.27.4
Regression
No, it isn't
Suggestions
No response
Logs
No response
Additional details
Using expand=True and width=float("inf") works for the menu itself, but not the contents - they will then expand to be the full width of the page.
The text was updated successfully, but these errors were encountered: