Re: [FlexJS] Layout Update

2015-05-19 Thread Peter Ent
It should be fairly simple to have ContainerView set up the background if explicit width AND height are set. Given what you said/wrote, this seems to be the best fit. The problem I’ve run into is only an issue for wrote: >Interesting. We could do that, but it bugs me a bit. The deferred >childr

Re: [FlexJS] Layout Update

2015-05-19 Thread Alex Harui
Interesting. We could do that, but it bugs me a bit. The deferred childrenAdded call is intended to close a transaction where addElement calls were told not to dispatch events on each call. If you look at it that way, a deferred childrenAdded call is an optimization option also available to folk

Re: [FlexJS] Layout Update

2015-05-19 Thread Peter Ent
I¹ve been looking into this. In MXMLDataInterpreter.generateMXMLInstances, if the data parameter is null, the function immediately returns. This means you have something like - it has no children. I¹m wondering if a better approach might be to re-write this function as: public static function g

Re: [FlexJS] Layout Update

2015-05-18 Thread Alex Harui
On 5/18/15, 1:51 PM, "Peter Ent" wrote: >The container appears to have no size. I have it explict (400x400) and so >it should be a colored rectangle. Without content you get a blank screen. >Add a label and you get the label inside a 400x400 colored box. Ah, ok. If the container does have siz

Re: [FlexJS] Layout Update

2015-05-18 Thread Peter Ent
The container appears to have no size. I have it explict (400x400) and so it should be a colored rectangle. Without content you get a blank screen. Add a label and you get the label inside a 400x400 colored box. ‹peter On 5/18/15, 4:40 PM, "Alex Harui" wrote: > > >On 5/18/15, 1:31 PM, "Peter Ent

Re: [FlexJS] Layout Update

2015-05-18 Thread Alex Harui
On 5/18/15, 1:31 PM, "Peter Ent" wrote: >Encountered a couple of things: > > with no content or explicit layout blows up; the layout >property is null. Maybe Container should have a default layout (Basic?). Sounds reasonable. > >If you use VContainer, for example, and style the container to h

Re: [FlexJS] Layout Update

2015-05-18 Thread Peter Ent
Encountered a couple of things: with no content or explicit layout blows up; the layout property is null. Maybe Container should have a default layout (Basic?). If you use VContainer, for example, and style the container to have a background color, the container will not appear unless it has con

Re: [FlexJS] Layout Update

2015-05-18 Thread Michael Schmalle
Would love to check it out. :) I think I need to checkout http until this stupid GIT stuff is figured out by Apache. Mike On Mon, May 18, 2015 at 1:50 PM, Alex Harui wrote: > Hi, > > I just pushed an attempt to better organize how layout works on the AS > side (The JS side heavily relies on the