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

MaxWidth / MaxHeight Missing #40

Closed brettclutch closed 6 years ago

brettclutch commented 6 years ago

I don't know if this is part of the flexbox spec or not but I'm porting from Yoga and find these missing. I thought about just implementing myself but that is not easily possible on my end since its not just a simple Math.Max in a Width/Height property setter, as you want the MaxWidth/MaxHeight to be active during the layout calculations.

If I end up implementing this myself will you be taking pull requests?

brettclutch commented 6 years ago

I will close this for now since I now realize I needed to investigate Item.Shrink = 0 and Item.Grow = 0 in combination with a Width = Height.

lrz commented 6 years ago

We will be considering any pull requests you might open!