Re: [FlexJS] resize event not working?

2017-02-22 Thread Alex Harui
"Resize" seemed to be reserved by the browser. Plus, IMO, events should have more explicit names. When the width changes, then dispatch "widthChange" because it may or may not guarantee a "resize" in response. "sizeChanged" means that someone called an API which set width and height in the same c

Re: [FlexJS] resize event not working?

2017-02-22 Thread Peter Ent
Alex will need to chime in here, but I believe his philosophy has been to keep the number of specialized events to a minimum. I'm not 100% sure I agree with that since it can be a lot easier to write code when you are responding to specific events, but it does expand the final footprint of the app

Re: [FlexJS] resize event not working?

2017-02-22 Thread Harbs
I think it’s to be consistent with widthChanged and heightChanged. There is no “resize” event anywhere in FlexJS. It’s probably a good idea to not use the browser names for events. I do believe there should be a ResizeEvent with consts for SIZE_CHANGED, WIDTH_CHANGED and HEIGHT_CHANGED. This do

Re: [FlexJS] resize event not working?

2017-02-21 Thread Justin Mclean
Hi, > Looks like you’re using a flash event instead of the flexjs one. Thanks for that I tried that as well, but still doesn’t work. I can see the Resize bead is doing this: window.addEventListener('resize', org.apache.flex.utils.Language.closure(this.resizeHandler, this, 'resizeHandler'), fa

FW: [FlexJS] resize event not working?

2017-02-21 Thread Yishay Weiss
From: Yishay Weiss<mailto:yishayj...@hotmail.com> Sent: Wednesday, February 22, 2017 8:07 AM To: Justin Mclean<mailto:jus...@classsoftware.com> Subject: RE: [FlexJS] resize event not working? Looks like you’re using a flash event instead of the flexjs one. From: Justin Mclea

[FlexJS] resize event not working?

2017-02-21 Thread Justin Mclean
Hi, This code doesn’t seem to work - anyone have any ideas why? I tried with and with out the bead and also tried “this.” instead of “view.” http://ns.adobe.com/mxml/2009"; xmlns:js="library://ns.apache.org/flexjs/basic" initialize="init()">