Hi, There was a bug in the FlexJS Application class that was preventing the BrowserResizeListener from being added to the Application strand. This has now been fixed and is checked into the develop branch of the flex-asjs repository. This modification will become part of the next release of FlexJS (no date yet on that), so in the meantime, please grab a new copy of flex-asjs from the git repo or from a nightly build after this point in time.
By including the BrowserResizeHandler (as shown below), you application will automatically generate layout update events as the browser's size changes. Regards, Peter Ent Adobe Systems/Apache Flex Project [begin snippet] <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:local="*" xmlns:models="models.*" xmlns:js="library://ns.apache.org/flexjs/basic" xmlns:controller="controller.*" > <js:beads> <js:BrowserResizeHandler /> </js:beads> [end snippet] On 3/31/16, 12:37 PM, "Alex Harui" <[email protected]> wrote: > > >On 3/30/16, 10:31 PM, "santanu4ver" <[email protected]> wrote: > >>Hello, >> >>I have already read about this at >>https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Layout that how >>FlexJS implemented "just-in-time" instead of "just-in-case" philosophy to >>save browser processes from listening to parent/children size changes and >>re-layout an application UI. Since responsive design concept is high on >>these days (and also a valid requirement I believe), I would like to >>start >>discuss on this. > >We have not spent any time on responsive design, but definitely would like >to see volunteers help create support for it. > >> >>I didn't seen any event to listen browser size changes to FlexJS (if >>available, please let me know); > >There is a BrowserResizeListener bead that you add to the beads on the >Application. There might be bugs in how it works. Let us know how it >works for you. Unfortunately, none of our current examples seem to be >using it. > >Thanks, >-Alex >
