Re: [FlexJS] MDL: Add/Remove item(s) to TabBar

2017-02-27 Thread piotrz
Sankar, I may be wrong but I think that your item renderer in "Tabs" will be responsible for scrolling. Look into my example and try to play with item renderer added there. How did you create scrollers in TabBar cases? Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this messag

[FlexJS] listening for scroll events

2017-02-27 Thread Justin Mclean
Hi, I have a container with a ScrollingViewport. How do you listen to scroll events on teh content? As far asI can see the scale event don't bubble and because of the added containers on the JS side you need to do something ugly like this: this["positioner"].children[0].addEventListener("scrol

Re: [FlexJS] TextArea and MultilineLabel

2017-02-27 Thread Alex Harui
On 2/27/17, 10:45 PM, "Justin Mclean" wrote: >Hi, > >>> I also tried MultilineLabel as far as I can see ignores any new lines >>>in >>> it content. Is this a bug? >> >> Not sure. How do you specify a new line in a regular HTML Span, and did >> you use the same thing? > > >With spans you don't

Re: [FlexJS] TextArea and MultilineLabel

2017-02-27 Thread Justin Mclean
Hi, >> I also tried MultilineLabel as far as I can see ignores any new lines in >> it content. Is this a bug? > > Not sure. How do you specify a new line in a regular HTML Span, and did > you use the same thing? With spans you don't as they are inline elements. In HTMl you would normal use a

Re: [FlexJS] TextArea and MultilineLabel

2017-02-27 Thread Alex Harui
On 2/27/17, 8:45 PM, "Justin Mclean" wrote: >Hi, > >What is the FlexJS component you should use for large blocks of text? > >I first try TextArea and it does however support newlines in the content, >but the text is editable. Should support be added for a readonly >property? Only in a PAYG wa

Re: [FlexJS] Quick check on HttpService fix

2017-02-27 Thread Alex Harui
Oh yeah, forgot about that. I thought this code worked at one point, maybe four or five years ago, but I was unable to find out when browsers started blocking it, so we can truly understand if it will never be needed again or will be needed on some older browser. It could be the right answer is t

Re: [FlexJS] ArrayList and events with items

2017-02-27 Thread Alex Harui
On 2/27/17, 10:45 AM, "piotrz" wrote: >Hi All, > >I'm exploring ArrayList and I was wondering why dispatched events new >Event("itemRemoved") do not contains removed item ? Is it for purpose ? > >It's hard to implement logic after change when I don't know actually what >has been removed or adde

Re: [FlexJS] TextArea and MultilineLabel

2017-02-27 Thread Justin Mclean
Hi, So one, probably ill conceived and hacky, work-around would be to do this: ” /> Anyone think of anything better? Thanks, Justin

Re: [FlexJS] MDL: Add/Remove item(s) to TabBar

2017-02-27 Thread sankar
Hi Piotr, Sorry, it's my bad. I missed a few previous comments of yours. I understand now what you were talking about. But if I'm not wrong, Tab does not have scrolling feature (when there's enough tabs) like TabBar does. Or, does it has any such? Thanks! -- View this message in context: htt

[FlexJS] TextArea and MultilineLabel

2017-02-27 Thread Justin Mclean
Hi, What is the FlexJS component you should use for large blocks of text? I first try TextArea and it does however support newlines in the content, but the text is editable. Should support be added for a readonly property? I also tried MultilineLabel as far as I can see ignores any new lines i

[FlexJS] Quick check on HttpService fix

2017-02-27 Thread Greg Dove
Justin logged a bug here and I encountered the same issue: https://issues.apache.org/jira/browse/FLEX-35271 At first glance this seems like a real quick fix, just delete the two lines from : if (contentData) { element.setRequestHeader('Content-length', contentData.length.toString()); e

Re: [FlexJS] Container

2017-02-27 Thread Justin Mclean
Hi, > QUESTION: In your Flex apps, do you need to place chrome elements besides > using a Panel? A few times but reasonably rare. Think the last time was a little “x" that showed up when mouse was in the corner. > I'm getting hung up with the nesting of the containing elements and I think >

[FlexJS] Container

2017-02-27 Thread Peter Ent
Hi, I've been wrestling with Container all day. I was working on the Flex layouts, but then went down the rabbit hole of Containers while trying to get the layouts to look right. The issue really isn't the HTML/JS side. That's pretty easy really (in concept). A FlexJS Container's element is a

[FlexJS] ArrayList and events with items

2017-02-27 Thread piotrz
Hi All, I'm exploring ArrayList and I was wondering why dispatched events new Event("itemRemoved") do not contains removed item ? Is it for purpose ? It's hard to implement logic after change when I don't know actually what has been removed or added to the array. Can it be changed? I saw ItemRem

Re: [FlexJS, MDL] Layout Problems

2017-02-27 Thread Alex Harui
On 2/27/17, 7:59 AM, "Harbs" wrote: >OK. > >What about @media for JS? > >Would that prevent SWF code from consuming it? I doubt it, but you can try it. > >I do think it’s important to allow specifying any valid css in your MXML >file even if it will not compile to SWF. One of the advantages o

Re: [FlexJS] MDL: Add/Remove item(s) to TabBar

2017-02-27 Thread piotrz
Sankar, I'm not sure what you are asking for ? I provided example which I have mentioned in new thread you can find link. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Add-Remove-item-s-to

Re: [FlexJS, MDL] Layout Problems

2017-02-27 Thread Harbs
OK. What about @media for JS? Would that prevent SWF code from consuming it? I do think it’s important to allow specifying any valid css in your MXML file even if it will not compile to SWF. One of the advantages of FlexJS over “normal” js dev is the ability to have self-contained markup, code

Re: [FlexJS] Changing "DataProviderChangeNotifier"

2017-02-27 Thread Alex Harui
IMO, you could create a DPCNWithAddRemoveEvents and do what you propose. Some apps are totally fine with a brute-force "re-do everything", some, via PAYG, do need more information and are willing to do more work to avoid re-doing everything. Yes, there are flavors like DPCNWithAddEvents that don'

Re: [FlexJS, MDL] Layout Problems

2017-02-27 Thread Alex Harui
On 2/27/17, 3:30 AM, "Harbs" wrote: >I don’t need it for SWF. I just want to be able to include valid css in >my app and not have Falcon choke on it. > >I’m not sure I understand why this is related to SimpleCSSValuesImpl. The >calc() should simply be passed through to the css file. > >Unless y

Re: [FlexJS] MDL: Add/Remove item(s) to TabBar

2017-02-27 Thread sankar
Hi Piotr, Is your last comment before the JIRA issue you closed or after? Thanks! -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FlexJS-MDL-Add-Remove-item-s-to-TabBar-tp59508p59896.html Sent from the Apache Flex Development mailing list archive at Nabbl

Re: [FlexJS, MDL] Layout Problems

2017-02-27 Thread Harbs
I don’t need it for SWF. I just want to be able to include valid css in my app and not have Falcon choke on it. I’m not sure I understand why this is related to SimpleCSSValuesImpl. The calc() should simply be passed through to the css file. Unless you are talking about FlexJS doing something f

Re: [FlexJS, MDL] Layout Problems

2017-02-27 Thread Alex Harui
When I fixed this earlier, it was just for the folks who were not using the SWF output. I think recent changes have broken it even for JS output, but I'm wondering if you are expecting this to work for SWF. If so there is a lot more work to be done. IMO, SimpleCSSValuesImpl shouldn't have to sup

Re: [FlexJS, MDL] Add example "MDLDynamicTabsExample"

2017-02-27 Thread piotrz
Thank you! Once I fix "DataProviderChangeNotifier" it will be even better. Currently each add item ends up with removeAll tabs and recreate them - It should just add/remove Tab. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-developm

Re: [FlexJS, MDL] Add example "MDLDynamicTabsExample"

2017-02-27 Thread Carlos Rovira
Hi Piotr, that looks fantastic, thanks! :) 2017-02-26 23:54 GMT+01:00 piotrz : > Hi All, > > I just added "MDLDynamicTabsExample" example which illustrate how to create > "Tab" dynamically in our MDL library. [1] > > [1] > https://github.com/apache/flex-asjs/tree/develop/examples/flexjs/ > MDLDy