xamarin / flex

Flex is a flexible box layout system written in C, designed to be easy to consume from other languages
MIT License
194 stars 28 forks source link

baseline missing #23

Open lrz opened 6 years ago

lrz commented 6 years ago

We should support baseline for align_items, align_self, justify_content and align_content.

StephaneDelcroix commented 6 years ago

that means the items should be able to report their baselines...

I'd keep this for wayyyyyy later

brettclutch commented 6 years ago

Yogalayout does this as delegate method which used during layout calculations. Similar to SelfSizing delegate.

katef commented 6 years ago

Would this be equivalent to centering, and then moving coordinates relative to the centerline? In other words, is center effectively a baseline set at 50% of the height?

If that's the case (at least for rows), I could imagine using FLEX_ALIGN_CENTER for both, and attaching a .baseline attribute to items, where centering overrides that to 50%.