Skip to content
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

Alignment on DropDown not working #3734

Closed
1 task done
julianobramos opened this issue Jul 29, 2024 · 1 comment · Fixed by #3737
Closed
1 task done

Alignment on DropDown not working #3734

julianobramos opened this issue Jul 29, 2024 · 1 comment · Fixed by #3737
Assignees
Labels
bug Something isn't working controls

Comments

@julianobramos
Copy link

Duplicate Check

Describe the bug

I'm trying to center text in dropdown component and it's not working.

Code sample

import flet as ft

def main(page: ft.Page):
dd = ft.Dropdown(
label = 'Select an option',
options = [
ft.dropdown.Option(key=1, text='Option 1'),
ft.dropdown.Option(key=2, text='Option 2'),
ft.dropdown.Option(key=3, text='Option 3'),
ft.dropdown.Option(key=4, text='Option 4'),
ft.dropdown.Option(key=5, text='Option 5', disabled=True)
],

    alignment=ft.alignment.center,

)

page.add(dd)

To reproduce

Run the code

Expected behavior

Text "Choose your option" on the center of the object.

Screenshots / Videos

Screenshots / Video demonstration

[Upload media here]

Operating System

macOS

Operating system details

Sonoma 14.5

Flet version

Version: 0.24.0.dev3196

Regression

No, it isn't

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

It was working on 0.22 version

@ndonkoHenri ndonkoHenri self-assigned this Jul 29, 2024
@ndonkoHenri ndonkoHenri added the bug Something isn't working label Jul 29, 2024
@ndonkoHenri
Copy link
Contributor

Culprit:

isExpanded: alignment != null,

@ndonkoHenri ndonkoHenri moved this from 🆕 New to 👀 In review in Flet Development Jul 30, 2024
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Flet Development Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working controls
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants