Re: [FlexJS] Layout Issue/Change

2017-05-02 Thread Alex Harui
On 5/2/17, 5:54 AM, "Peter Ent" wrote: >Plus, there is no provision in the base layout for watching for new >children or removed children. In the PAYG world, those feature would be >part of other layouts: > >HorizontalLayoutWatchForAddChild >HorizontalLayoutWatchForRemoveChild >HorizontalLayoutW

Re: [FlexJS] Layout Issue/Change

2017-05-02 Thread Peter Ent
I'm trying to find the balance between PAYG and mimicking the HTML/JS/CSS side on the SWF side. Take HorizontalLayout for example. On the JS side, this layout waits for "childrenAdded" and then changes each child's display style to "inline-block". If you then programmatically change one child's wi

Re: [FlexJS] Layout Issue/Change

2017-05-02 Thread piotrz
Understand. It is not bad changes in terms of complex layout. I think this changes need to be done on feature branch. I would like to test it and see how it affects current examples. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-devel

Re: [FlexJS] Layout Issue/Change

2017-05-01 Thread Alex Harui
Without having looked at every layout, it does make sense to me that LayoutBase should not need to watch children for size changes on the JS side. That's because the browser already has installed those listeners and will re-calculate the layout as needed. The SWF-side will continue to need to wat

Re: [FlexJS] Layout Issue/Change

2017-05-01 Thread Peter Ent
The current listeners in LayoutBase (Basic Project) are for the children of a component. Right now, if you have a Group with 10 buttons and VerticalLayout, and you resize one of those buttons, LayoutBase/VerticalLayout will detect that and automatically re-run the VerticalLayout algorithm. What I

Re: [FlexJS] Layout Issue/Change

2017-05-01 Thread piotrz
Hi Peter, It look like we have partially implemented "layoutNeeded". Your suggestion in #1 - is to completely remove current listeners which are dispatch "layoutNeeded". - Am I understand correctly ? - So if I will add children later - those will resize itself, but in order to correct parent resi