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

Add align_self property #3126

Open
mhsmith opened this issue Jan 24, 2025 · 0 comments
Open

Add align_self property #3126

mhsmith opened this issue Jan 24, 2025 · 0 comments
Labels
enhancement New features, or improvements to existing features.

Comments

@mhsmith
Copy link
Member

mhsmith commented Jan 24, 2025

We already support align_items, which aligns all of a box's children at once in the cross axis. We should also support align_self, which allows the alignment to be overridden on a per-child basis.

To avoid confusion, the existing alignment-related bugs should probably be fixed first (#2213).

Based on #3111, this property should have the alias horizontal_align or vertical_align when the parent is a column or row respectively. But this is complicated by the fact that during initialization, we don’t know what the parent will be yet.

@mhsmith mhsmith added the enhancement New features, or improvements to existing features. label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

1 participant