stretch icon indicating copy to clipboard operation
stretch copied to clipboard

Lack of support to provide baseline

Open mos8502 opened this issue 2 years ago • 1 comments

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.

mos8502 avatar Jan 19 '23 01:01 mos8502

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

nicoburns avatar Feb 09 '23 00:02 nicoburns