vislyhq / stretch

High performance flexbox implementation written in rust
https://vislyhq.github.io/stretch/
MIT License
1.99k stars 107 forks source link

Lack of support to provide baseline #110

Open mos8502 opened 1 year ago

mos8502 commented 1 year ago

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 commented 1 year ago

@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.