flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harbs <harbs.li...@gmail.com>
Subject Re: [FlexJS]Layout
Date Mon, 06 Jun 2016 13:02:24 GMT
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.

I’d be happy to do some work on this, but frankly, I’m not sure where to start. If you
could give me some pointers, it might help. I’ll try and look at the current layout beads
and see if I can understand them.

On Jun 6, 2016, at 12:46 AM, Alex Harui <aharui@adobe.com> wrote:

> 
> 
> On 6/5/16, 11:26 AM, "Harbs" <harbs.lists@gmail.com> wrote:
> 
>> How is layout handled in FlexJS? Is there a layout manager? It looks like
>> there’s no constraints (i.e. top, bottom,left and right). Is that
>> something that’s particularly difficult to add?
>> 
> 
> Layouts are beads.  We have a HorizontalLayout and VerticalLayout and a
> few special case layouts: OneFlexibleChildHorizonalLayout.  See:
>   HTML/src/main/flex/org/apache/flex/html/beads/layouts
> 
> 
> There is no LayoutManager (at least, right now).  The regular Flex
> LayoutManager actually manages invalidation/validation which FlexJS does
> not have because the browsers often immediately update the screen.
> 
> There is no ConstraintLayout.  CSS should work, so setting
> style="left:0px" should pin it to the left side.  There is no equivalent
> to the regular Flex ConstraintLayout.  Volunteers are welcome to build it,
> but I'm not sure it was the greatest solution.   Other constraint layouts
> can and should be built by volunteers some day.  And don't forget "data
> binding".  Hopefully FlexJS data binding is simpler and faster in certain
> cases so it won't kill performance as much to use data binding to get your
> UI widgets to line up and move together.
> 
> HTH,
> -Alex
> 


Mime
View raw message