You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by santanu4ver <sa...@gmail.com> on 2016/03/31 07:31:54 UTC

Responsive design needs for FlexJS HTML output

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 application where we want to listen browser size changes dynamically
in FlexJS HTML output. We also wants to manipulate children/sub-children
sizes based upon that, and to component properties, i.e.
<js:VerticalColumnLayout/> columnCount change etc. How we can able to meet
this?

I didn't seen any event to listen browser size changes to FlexJS (if
available, please let me know); Apache Wiki page also mentioned to dispatch
"layoutNeeded" event but I'm unclear where or how this event should dispatch
- is it possible to provide any code example too? We would like to be this
process exhaustive if it requires, if this even cost an extra browser
process I think that is valid consideration considering the kind of
advantage that it'd give. Even Apache wouldn't want to bring the responsive
layout feature to FlexJS, we need to want this for our application.

So, how can we implement this to our application, can you give some
descriptive suggestion?

Thank you once again.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by Alex Harui <ah...@adobe.com>.

On 4/12/16, 11:00 PM, "dhwanishah85" <dh...@gmail.com> wrote:

>Hi,
>
>Thanks Om,Alex and Harbs for your response.
>
>I am able to see nightly builds option in Apache SDK installer. I have
>started installing nightly builds for FlexJS.
>I am not sure but it stops at 4th point "finished uncompressing
>flexjs0.7.0.bin.zip". There is no error in the log. I am keeping installer
>running for now and take a look after a while if i get any error or not.

Hmm.  Looks like there is a problem with the nightly.  I just pushed a
fix.  It might take a couple of hours for the build system to catch up.

While you are waiting, can you subscribe to this mailing list?  That way
your emails won't get stuck in moderation.  Send an email to
users-subscribe@flex.apache.org

Thanks,
-Alex


Re: Responsive design needs for FlexJS HTML output

Posted by dhwanishah85 <dh...@gmail.com>.
Hi Alex,

That works great really.
Here I am providing how we have used the listener for other user's
reference:

//From our initialView 
protected function onInitComplete(event:org.apache.flex.events.Event):void
 {
	this.addEventListener("sizeChanged", resizeListener);
 }


// we need to change UI based upon the screen size. taking decision to show
1 column layout or 2 column layout
private function resizeListener (e:Event):void 
{			
	if (this.width > 1004)
ApplicationModel(applicationModel).maxNumColumnsSuggested = 2;
	else ApplicationModel(applicationModel).maxNumColumnsSuggested = 1;
}

Thanks for the help.

Dhwani



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12523.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by piotrz <pi...@gmail.com>.
Hi Dhwani,

If would like to avoid confusion what version did you download you can
always take a look into our jenkins. FlexJs [1] and Falcon [2]. If Alex push
something you can click on "Changes" and see in which build it is.
Installator always download last successful build.

[1] http://apacheflexbuild.cloudapp.net:8080/job/flex-asjs/
[2] http://apacheflexbuild.cloudapp.net:8080/job/flex-falcon/

Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12468.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by Alex Harui <ah...@adobe.com>.

On 4/15/16, 4:41 PM, "dhwanishah85" <dh...@gmail.com> wrote:
>
>Basically I want to listen to resize event and make few UI changes
>accordingly. Is that possible by overriding any function?

The BrowserResizeListener should cause the initialView to dispatch a
sizeChanged event.  Typically that triggers a layout from the top down.

HTH,
-Alex


Re: Responsive design needs for FlexJS HTML output

Posted by dhwanishah85 <dh...@gmail.com>.
Hi Alex,

Version issue has been solved.

Now For <js:BrowserResizeHandler  />
I want to know if I wanted to do some operations while browser is getting
resize then how can I add those behaviour into the BrowserResizeListener? I
think because this functionality is added in nightly build, so there is no
API reference for the same.

Basically I want to listen to resize event and make few UI changes
accordingly. Is that possible by overriding any function?

Thanks
Dhwani



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12476.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by Alex Harui <ah...@adobe.com>.

On 4/14/16, 3:55 PM, "dhwanishah85" <dh...@gmail.com> wrote:

>Hi Alex,
>
>Is there any way to confirm version of nightly build?

No official way that I can think of.  The flex-sdk-description.xml will
have a date for the version, but there could be more than one build per
day.

And even that won't tell you which build of the compiler was downloaded by
the install script.  I think the only thing you can do is compare the size
of compiler.jar in the lib folder.  And the jsc.jar in js/lib.

We're making a bunch of changes to the builds in order to support Maven.
Maybe when we're done we can put version info in more places.

-Alex


Re: Responsive design needs for FlexJS HTML output

Posted by dhwanishah85 <dh...@gmail.com>.
Hi Alex,

Is there any way to confirm version of nightly build?
I am able to run the same example but my teammate is not able to run it. We
are checking if we both are using same version or not.

Thanks
Dhwani



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12466.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by dhwanishah85 <dh...@gmail.com>.
Hi Alex,

I have taken new FlexJS nightly build and added 

<js:beads> 
		<js:BrowserResizeHandler /> 
	</js:beads> 
inside application tag.
It works.I am able to see it is resizing properly. If I find any new issue
related to this, i will update you.

Thanks
Dhwani



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12465.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by Alex Harui <ah...@adobe.com>.
Yes.  It is working for me.

On 4/14/16, 2:17 PM, "dhwanishah85" <dh...@gmail.com> wrote:

>Hi Alex,
>
>Is the SDK fixed now? Should I take new nightly build?
>
>Thanks
>Dhwani
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for
>-FlexJS-HTML-output-tp12378p12462.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Responsive design needs for FlexJS HTML output

Posted by alain pradier <pr...@gmail.com>.
Alain Pradier

Président/CEO of Unik Solution sas.
www.uniker.net

 <http://www.uniker.net/>  <http://www.uniker.net/> <https://play.google.com/store/apps/details?id=com.uniker.healthbook>
 <https://play.google.com/store/apps/details?id=com.uniker.healthbook>
> Le 14 avr. 2016 à 23:17, dhwanishah85 <dh...@gmail.com> a écrit :
> 
> Hi Alex,
> 
> Is the SDK fixed now? Should I take new nightly build?
> 
> Thanks
> Dhwani
> 
> 
> 
> --
> View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12462.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Responsive design needs for FlexJS HTML output

Posted by dhwanishah85 <dh...@gmail.com>.
Hi Alex,

Is the SDK fixed now? Should I take new nightly build?

Thanks
Dhwani



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12462.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by Alex Harui <ah...@adobe.com>.
I think I found it.  Have to wait for the build server again.  Maybe in a
couple of hours.

-Alex

On 4/13/16, 3:42 PM, "Alex Harui" <ah...@adobe.com> wrote:

>I just ran into that myself.  Investigating...
>
>On 4/13/16, 3:05 PM, "dhwanishah85" <dh...@gmail.com> wrote:
>
>>So working with FlexJS0.7.0 and testing our FlexJS example (works with
>>FlexJS0.6.0). I am getting following errors
>>
>>Could not find file for class:
>>org.apache.flex.html.supportClasses.DataGroup
>>: File not found: org.apache.flex.html.supportClasses.DataGroup
>>: java.lang.RuntimeException: Unable to find JavaScript filePath for
>>class:
>>org.apache.flex.html.supportClasses.DataGroup
>>: at
>>org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWr
>>i
>>ter.java:179) 
>>: at
>>org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWr
>>i
>>ter.java:213) 
>>: at
>>org.apache.flex.compiler.internal.graph.GoogDepsWriter.buildDB(GoogDepsWr
>>i
>>ter.java:130) 
>>: at
>>org.apache.flex.compiler.internal.graph.GoogDepsWriter.getListOfFiles(Goo
>>g
>>DepsWriter.java:82)
>>: at
>>org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher
>>.
>>publish(MXMLFlexJSPublisher.java:337)
>>: at org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:490)
>>: at 
>>org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:352)
>>: at 
>>org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:277)
>>
>>
>>
>>--
>>View this message in context:
>>http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-fo
>>r
>>-FlexJS-HTML-output-tp12378p12457.html
>>Sent from the Apache Flex Users mailing list archive at Nabble.com.
>


Re: Responsive design needs for FlexJS HTML output

Posted by Alex Harui <ah...@adobe.com>.
I just ran into that myself.  Investigating...

On 4/13/16, 3:05 PM, "dhwanishah85" <dh...@gmail.com> wrote:

>So working with FlexJS0.7.0 and testing our FlexJS example (works with
>FlexJS0.6.0). I am getting following errors
>
>Could not find file for class:
>org.apache.flex.html.supportClasses.DataGroup
>: File not found: org.apache.flex.html.supportClasses.DataGroup
>: java.lang.RuntimeException: Unable to find JavaScript filePath for
>class:
>org.apache.flex.html.supportClasses.DataGroup
>: at
>org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWri
>ter.java:179) 
>: at
>org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWri
>ter.java:213) 
>: at
>org.apache.flex.compiler.internal.graph.GoogDepsWriter.buildDB(GoogDepsWri
>ter.java:130) 
>: at
>org.apache.flex.compiler.internal.graph.GoogDepsWriter.getListOfFiles(Goog
>DepsWriter.java:82)
>: at
>org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.
>publish(MXMLFlexJSPublisher.java:337)
>: at org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:490)
>: at 
>org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:352)
>: at 
>org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:277)
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for
>-FlexJS-HTML-output-tp12378p12457.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Responsive design needs for FlexJS HTML output

Posted by dhwanishah85 <dh...@gmail.com>.
So working with FlexJS0.7.0 and testing our FlexJS example (works with
FlexJS0.6.0). I am getting following errors

Could not find file for class: org.apache.flex.html.supportClasses.DataGroup 
: File not found: org.apache.flex.html.supportClasses.DataGroup 
: java.lang.RuntimeException: Unable to find JavaScript filePath for class:
org.apache.flex.html.supportClasses.DataGroup 
: at
org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:179) 
: at
org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:213) 
: at
org.apache.flex.compiler.internal.graph.GoogDepsWriter.buildDB(GoogDepsWriter.java:130) 
: at
org.apache.flex.compiler.internal.graph.GoogDepsWriter.getListOfFiles(GoogDepsWriter.java:82) 
: at
org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher.publish(MXMLFlexJSPublisher.java:337) 
: at org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:490) 
: at org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:352) 
: at org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:277) 



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12457.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by dhwanishah85 <dh...@gmail.com>.
Yes the new installer is working for me now. 

The issue was - I was using SDK installer via crossover. It was failing for
me.

Current installer is working smooth and installing FlexJS0.7.0

Thanks
Dhwani



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12456.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by dhwanishah85 <dh...@gmail.com>.
Hi Alex,

I have sent request for subscribe.

Do you have latest SDK installer? Can that create a problem in the process?
If so then I can give a try to new SDK installer. 

Thanks
Dhwani



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12455.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by Alex Harui <ah...@adobe.com>.
Hi Dhwani,

I guess the build machine is slower than I thought.  I just tried it this
morning and the Installer completed.

-Alex

On 4/12/16, 11:33 PM, "dhwanishah85" <dh...@gmail.com> wrote:

>I confirm that the installer is stuck at 4th point and there is no error
>in
>the log. I have waited for an hour but it is still at same stage.
>
>Is there any other alternative to install it?
>
>Thanks
>Dhwani
>My Apache Flex community contribution is working on the open source
>Moonshine-IDE.com for FlexJS.
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for
>-FlexJS-HTML-output-tp12378p12451.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Responsive design needs for FlexJS HTML output

Posted by dhwanishah85 <dh...@gmail.com>.
I confirm that the installer is stuck at 4th point and there is no error in
the log. I have waited for an hour but it is still at same stage.

Is there any other alternative to install it? 

Thanks
Dhwani
My Apache Flex community contribution is working on the open source 
Moonshine-IDE.com for FlexJS.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12451.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by dhwanishah85 <dh...@gmail.com>.
Hi,

Thanks Om,Alex and Harbs for your response.

I am able to see nightly builds option in Apache SDK installer. I have
started installing nightly builds for FlexJS.
I am not sure but it stops at 4th point "finished uncompressing
flexjs0.7.0.bin.zip". There is no error in the log. I am keeping installer
running for now and take a look after a while if i get any error or not.

I will update here tomorrow for the same.

@Harbs - I am thankful to you for all your time and effort on conference day
for setting up FlexJS sources on my system. I am currently working on
resolving Moonshine issues and soon I will start working on bootstrap.

Thanks
Dhwani 
My Apache Flex community contribution is working on the open source 
Moonshine-IDE.com for FlexJS.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12449.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by Harbs <ha...@gmail.com>.
If all she needs is the BrowserResizeListener bead, then yes. The nightly build is the easiest way to go.

If she wants to make changes to the source and test them in Moonshine, she’s probably going to need to build the SDK from source.

On Apr 13, 2016, at 8:23 AM, Alex Harui <ah...@adobe.com> wrote:

> I think Dhwani just needs to install the nightly as Om said.
> 
> Instructions for setting up the SDK from source are here [1].  And if it
> doesn't work, please let us know.
> 
> -Alex
> 
> [1] https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Developer+Setup
> 
> On 4/12/16, 10:19 PM, "Harbs" <ha...@gmail.com> wrote:
> 
>> HI Dhwani,
>> 
>> It’s possible to build an SDK from source, but I always forget the
>> details.
>> 
>> If noone else chimes in, I’ll see if I can figure it out again.
>> 
>> On Apr 13, 2016, at 2:31 AM, dhwanishah85 <dh...@gmail.com> wrote:
>> 
>>> I forgot to mention that i need to test BrowserResizeListener bead
>>> which is
>>> not resolved tag to action script class in FlexJS0.6.0 SDK.
>>> 
>>> Thanks
>>> Dhwani
>>> My Apache Flex community contribution is working on the open source
>>> Moonshine-IDE.com for FlexJS.
>>> 
>>> 
>>> 
>>> --
>>> View this message in context:
>>> http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-fo
>>> r-FlexJS-HTML-output-tp12378p12444.html
>>> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>> 
> 


Re: Responsive design needs for FlexJS HTML output

Posted by Alex Harui <ah...@adobe.com>.
I think Dhwani just needs to install the nightly as Om said.

Instructions for setting up the SDK from source are here [1].  And if it
doesn't work, please let us know.

-Alex

[1] https://cwiki.apache.org/confluence/display/FLEX/FlexJS+Developer+Setup

On 4/12/16, 10:19 PM, "Harbs" <ha...@gmail.com> wrote:

>HI Dhwani,
>
>It’s possible to build an SDK from source, but I always forget the
>details.
>
>If noone else chimes in, I’ll see if I can figure it out again.
>
>On Apr 13, 2016, at 2:31 AM, dhwanishah85 <dh...@gmail.com> wrote:
>
>> I forgot to mention that i need to test BrowserResizeListener bead
>>which is
>> not resolved tag to action script class in FlexJS0.6.0 SDK.
>> 
>> Thanks
>> Dhwani
>> My Apache Flex community contribution is working on the open source
>> Moonshine-IDE.com for FlexJS.
>> 
>> 
>> 
>> --
>> View this message in context:
>>http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-fo
>>r-FlexJS-HTML-output-tp12378p12444.html
>> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>


Re: Responsive design needs for FlexJS HTML output

Posted by Harbs <ha...@gmail.com>.
HI Dhwani,

It’s possible to build an SDK from source, but I always forget the details.

If noone else chimes in, I’ll see if I can figure it out again.

On Apr 13, 2016, at 2:31 AM, dhwanishah85 <dh...@gmail.com> wrote:

> I forgot to mention that i need to test BrowserResizeListener bead which is
> not resolved tag to action script class in FlexJS0.6.0 SDK.
> 
> Thanks
> Dhwani
> My Apache Flex community contribution is working on the open source
> Moonshine-IDE.com for FlexJS.
> 
> 
> 
> --
> View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12444.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: Responsive design needs for FlexJS HTML output

Posted by OmPrakash Muppirala <bi...@gmail.com>.
You can use the installer, right click , select 'show dev builds' option.
Then, you will see the Apache FlexJS Nightly option in the list of SDKs.
This should contain the latest fixes.

Thanks,
Om

On Tue, Apr 12, 2016 at 4:31 PM, dhwanishah85 <dh...@gmail.com>
wrote:

> I forgot to mention that i need to test BrowserResizeListener bead which is
> not resolved tag to action script class in FlexJS0.6.0 SDK.
>
> Thanks
> Dhwani
> My Apache Flex community contribution is working on the open source
> Moonshine-IDE.com for FlexJS.
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12444.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Re: Responsive design needs for FlexJS HTML output

Posted by dhwanishah85 <dh...@gmail.com>.
I forgot to mention that i need to test BrowserResizeListener bead which is
not resolved tag to action script class in FlexJS0.6.0 SDK.

Thanks
Dhwani
My Apache Flex community contribution is working on the open source
Moonshine-IDE.com for FlexJS.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12444.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by dhwanishah85 <dh...@gmail.com>.
Hi,

I have FlexJS0.6.0 SDK. And I want to take latest flex-asjs nightly build
and include it in FlexJS sdks 0.6.0 in my installed sdks. I know about
taking updates from github for Flex-asjs. But how can i include it in FlexJS
sdks?

Dhwani
My Apache Flex community contribution is working on the open source
Moonshine-IDE.com for FlexJS.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Responsive-design-needs-for-FlexJS-HTML-output-tp12378p12443.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Responsive design needs for FlexJS HTML output

Posted by Peter Ent <pe...@adobe.com>.
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" <ah...@adobe.com> wrote:

>
>
>On 3/30/16, 10:31 PM, "santanu4ver" <sa...@gmail.com> 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
>


Re: Responsive design needs for FlexJS HTML output

Posted by Alex Harui <ah...@adobe.com>.

On 3/30/16, 10:31 PM, "santanu4ver" <sa...@gmail.com> 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