I'm slow getting to these emails, so if I've missed any, I apologize.
After this last two weeks I've come to the realization that the FlexBox CSS
style is greatly more flexible(no pun intended twice) than most of what we have
in AS. I could write a pile of examples for most common layouts if it had
enough interest. These were styles I ended up assigning using CSS selectors
assigned to MXML via the className property. I could even fix formatting
issues I was having in Jewel by overriding the styles this way.
If you really wanted to use a max width without adding coding overhead to the
SDK you could just add in CSS file selector to use max-width.
.MyStyle
{
Max:width: 200px;
}
<j:VGroup className="MyStyle">
<child />
<child />
</ j:VGroup>
It would cut off any overflow by default. If you'd prefer you could use the
"flex-wrap: wrap" to have it wrap the children in the cross axis direction.
I'll have to add more to the email later on, but this part can go out now.
Could make a very large wiki page on layout in MXML with the flexbox logic.
-Mark K
-----Original Message-----
From: Carlos Rovira [mailto:[email protected]]
Sent: Thursday, January 10, 2019 2:50 PM
To: [email protected]
Subject: [Non-DoD Source] Re: Things that we still doesn't have and need in
UIBase sizing
Hi Mark,
thanks for joining to the discussion:
El jue., 10 ene. 2019 a las 20:31, Kessler CTR Mark J
(<[email protected]>) escribió:
>
> Back on topic, I was able to avoid using max size declarations by adding
> in CSS to utilize the flex-box CSS alignments to fill and distribute sizes.
>
Very interesting, could you provide some code example so I can understand
the concept? I'm interested in that technique
thanks
--
Carlos Rovira
http://about.me/carlosrovira