Re: Do ItemRenderer's get reused across different components?

2016-10-25 Thread Alex Harui
On 10/25/16, 6:41 PM, "Kyle McKnight" wrote: >I only set the explicitWidth. > >Where would I store the columnWidth once it's attained? Since the parents >of the child are also reused, if I stored them in the parent renderer then >those values might not be right for the next time they are reused

Re: Do ItemRenderer's get reused across different components?

2016-10-25 Thread Kyle McKnight
I only set the explicitWidth. Where would I store the columnWidth once it's attained? Since the parents of the child are also reused, if I stored them in the parent renderer then those values might not be right for the next time they are reused. Lol. What a mess! :) Kyle McKnight Senior UI Engin

Re: Do ItemRenderer's get reused across different components?

2016-10-25 Thread Alex Harui
On 10/25/16, 6:19 PM, "Kyle McKnight" wrote: >Hmm, sorry. Couldn't quite figure it out. At the end of the set data >override of my ChildList renderer I added a listener for the update event. >Then in the handler, if the explicitWidth hadn't been set yet, I set it. >But they still resized. Hmm.

Re: Do ItemRenderer's get reused across different components?

2016-10-25 Thread Kyle McKnight
Hmm, sorry. Couldn't quite figure it out. At the end of the set data override of my ChildList renderer I added a listener for the update event. Then in the handler, if the explicitWidth hadn't been set yet, I set it. But they still resized. Kyle McKnight Senior UI Engineer - Accesso 602.515.1444

Re: Can't hide NavigatorContent

2016-10-25 Thread OK
> Instead of this you may want to handle the creationComplete event of the "tab viewstack" to hide particular tabs. Only to be clear: Of course you're only be able to hide a tab if it is already instanciated! Sounds like in your use case it makes sense to add the tabs dynamically to the viewstack

Re: Do ItemRenderer's get reused across different components?

2016-10-25 Thread Kyle McKnight
Great! Thanks so much On Oct 25, 2016 5:05 PM, "Alex Harui" wrote: > > > On 10/25/16, 1:42 PM, "kamcknig" wrote: > > >I'll try that out, is there an event I can listen for when a layout has > >completed all of it's measurements and positionings? > > It depends. You may need to wait until data

Re: Do ItemRenderer's get reused across different components?

2016-10-25 Thread Alex Harui
On 10/25/16, 1:42 PM, "kamcknig" wrote: >I'll try that out, is there an event I can listen for when a layout has >completed all of it's measurements and positionings? It depends. You may need to wait until data has arrived. So sometimes I wait for some data event then wait for updateComplete

Re: Can't hide NavigatorContent

2016-10-25 Thread OK
olegkon wrote > I am trying to hide one tab, but it doesn't work for me from > creationComplete. > I see ViewStack is NULL at that point. If I understand you right the "tab viewstack" is nested so maybe it is not instanciated at creationComplete of your top level component cause of the deferred in

Re: Do ItemRenderer's get reused across different components?

2016-10-25 Thread kamcknig
I'll try that out, is there an event I can listen for when a layout has completed all of it's measurements and positionings? Thanks! Kyle McKnight Senior UI Engineer - Accesso 602.515.1444 (M) On Tue, Oct 25, 2016 at 4:40 PM, Alex Harui [via Apache Flex Users] < ml-node+s246n13933...@n4.nab

Re: Do ItemRenderer's get reused across different components?

2016-10-25 Thread Alex Harui
On 10/25/16, 11:43 AM, "kamcknig" wrote: >I am not because I would like them to be dynamically sized. The only width >I believe I have set is on the renderer itself I set the minWidth to 150. Yeah, that sounds like a scenario we hit often. I often really only want a renderer to be dynamically

Can't hide NavigatorContent

2016-10-25 Thread Oleg Konovalov
Hi, There is a 2 level menu in my web app, so on second level I have a ViewStack with multiple NavigatorContent tabs. I am trying to hide one tab, but it doesn't work for me from creationComplete. I see ViewStack is NULL at that point. Making visible=false or includeInLayout or enable false doesn'

Re: Do ItemRenderer's get reused across different components?

2016-10-25 Thread kamcknig
I am not because I would like them to be dynamically sized. The only width I believe I have set is on the renderer itself I set the minWidth to 150. Kyle McKnight Senior UI Engineer - Accesso 602.515.1444 (M) On Tue, Oct 25, 2016 at 2:22 PM, Alex Harui [via Apache Flex Users] < ml-node+s246n

Re: Editing Spark DataGrid

2016-10-25 Thread ImadEddine
That's OK I change from contentBackgroundAlpha="0" To contentBackgroundAlpha="1" Thank-you very much Alex -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Editing-Spark-DataGrid-tp13899p13930.html Sent from the Apache Flex Users mailing list archive at Nabble.

Re: Do ItemRenderer's get reused across different components?

2016-10-25 Thread Alex Harui
Are you setting columnWidth? If not it could get recalculated and if a renderer reports a different size now that it is full of content, you might get different results. -Alex On 10/25/16, 11:04 AM, "Kyle McKnight" wrote: >I have a List, ParentList, that has a VerticalLayout. Within ParentList

Do ItemRenderer's get reused across different components?

2016-10-25 Thread Kyle McKnight
I have a List, ParentList, that has a VerticalLayout. Within ParentList is another List, ChildList with a TileLayout. During points in my application, ParentList gets updated which then also means ChildList gets updated. What is weird is that the same ChildList will show different sizes of the chi

Re: Editing Spark DataGrid

2016-10-25 Thread Alex Harui
Could it be that styles have been set in a way that makes the editor's background transparent? Try setting backgroundColor=0xff000 and see what is red and what isn't. On 10/25/16, 9:24 AM, "ImadEddine" wrote: >I don't using any itemEditor only itemRendrer for data grid > >

Re: Editing Spark DataGrid

2016-10-25 Thread ImadEddine
I don't using any itemEditor only itemRendrer for data grid -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Editing-Spark-DataGrid-tp13899p13926.html Sent from the Apache Flex Users mailing li

Re: [FlexJS] Support in BlazeDS communication

2016-10-25 Thread Alex Harui
Hi Carlos, FlexJS outputs JS so you should be able to integrate with any other JS code you find out there. The main issue, IMO, is whether that code is written in an object-oriented manner. The more it is, the easier it is to work with from FlexJS. You can thinly wrap an ActionScript class defi

Re: Editing Spark DataGrid

2016-10-25 Thread Alex Harui
I still don't see a link. If you try other DG editing examples, do they obscure the old value? I think they do, so that would indicate there is something different about your renderers and editors. -Alex On 10/24/16, 10:54 AM, "ImadEddine" wrote: >Thank-you Like This ... > >My Question is the

Re: Updating data for List refreshes entire List and scrolls to the top

2016-10-25 Thread Alex Harui
On 10/25/16, 7:39 AM, "kamcknig" wrote: >Your solution works though it feels a bit hacky. I also get a flicker >when I >do it. So a lot of the items will blink out and back in for a split >second. refresh() does a full refresh. itemUpdated and other methods will only update an item, but might

Re: Updating data for List refreshes entire List and scrolls to the top

2016-10-25 Thread kamcknig
Your solution works though it feels a bit hacky. I also get a flicker when I do it. So a lot of the items will blink out and back in for a split second. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Updating-data-for-List-refreshes-entire-List-and-scrolls-to-th

Re: Updating data for List refreshes entire List and scrolls to the top

2016-10-25 Thread kamcknig
OK it appears that I got that error becuse I was passing the index of the item in the "source" array. But on my data provider I had a filter on the array so not all items were there. I have now instead dispatched the change with the Object that was changed (FYI, I'm using Signals, not that it matte

Re: Updating data for List refreshes entire List and scrolls to the top

2016-10-25 Thread Kyle McKnight
I get the following error. Looks like at some sort of internal update. I've made sure any index I'm passing in is > -1. And in the case I'm testing it's 0. So internally it's getting a -1 somewhere and I'm not sure. I'm now using listProvider.itemUpdated(listProvider.getItemAt(index)) where index

Re: Upgrading to jre 1.8 for AIR compile

2016-10-25 Thread Nemi
Trick is you need "jre" folder from "jdk". If you only install jre, it won't work. So you need to *install jdk first*. 1 Close Flash Builder 2 In Flash Builder install folder, rename "jre" to something else, like "jre_1.6.0_old" 3 Install latest JDK [1] 4 Copy "jre" folder from "jdk" install folde

Re: Unzip ANE for Flex\AIR Desktop App

2016-10-25 Thread Fréderic Cox
Glad I could help! On Tue, Oct 25, 2016 at 8:46 AM, Deepak MS wrote: > Thank you thank you thank you so much Fréderic. It worked flawlessly. 500MB > zip file gets unzipped in just 5 - 6 seconds. I had been cracking my head > on how to get this working. You made my day! I'm sure others too > wou

Re: Updating data for List refreshes entire List and scrolls to the top

2016-10-25 Thread Vincent
Hello Kyle, If you want to use the refresh() method, a solution would be to : 1 - Store the verticalScrollPosition value of the scroller of the list (verticalScrollPosition is a property you can access via the viewport property of the scroller) 2 - Invoke the refresh method of the data provid