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

Lack of support to provide baseline #110

Open
mos8502 opened this issue Jan 19, 2023 · 1 comment
Open

Lack of support to provide baseline #110

mos8502 opened this issue Jan 19, 2023 · 1 comment

Comments

@mos8502
Copy link

mos8502 commented Jan 19, 2023

Though there is a means to set baseline as alignment value for alignItems and alignSelf however it is not clear how the baseline of a node is calculated.

@nicoburns
Copy link

@mos8502stretch is no longer maintained. You should check out https://github.com/DioxusLabs/taffy (and open an issue there) which is a maintained fork of stretch. However, the direct answer to how baselines are calculated is that is the bottom edge of the leaf node you get to if you keep recursing down through the first child each node. Stretch/Taffy could definitely do with allow "measure_func"s to return baselines, but this isn't currently possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants