On 6/6/16, 6:02 AM, "Harbs" <harbs.li...@gmail.com> wrote:
>Well, constraint layout is really important. I’m fine with using css for >JS output, but that’s not going to help for a swf first workflow. What do you mean by "constraint layout"? The Spark layout with ConstraintColumns and ConstraintRows? IIRC, it used a lot of compute cycles. CSS is intended to work for SWF-first workflows as well. The goal for the Basic component set is to eventually support all of CSS. The Basic component set is trying to emulate what the browsers do, not the other way around. That way, the output JS is as lightweight and low-overhead as possible. So, if you specify in CSS that left=0, the same thing should happen in the SWF as in the browser. > I’m a bit confused. > > In BasicLayout.layout() there’s the following code: > > var left:Number = ValuesManager.valuesImpl.getValue(child, "left"); The ValuesManager abstracts CSS (and other non-CSS values). On the JS side, the code doesn't have to query ValuesManager nearly as often since the browser is just going to deal with it, but when the code we write needs to know what the CSS is that the theme/developer specified, we use ValuesManager to get it. And, like I said, the goal in the code we write is to replicate what the browser will do. HTH, -Alex