Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
Adobe Flex SDK 4.1 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s):
Browser: Firefox 3.x
Language Found: English
Description
Steps to reproduce:
1. Create a SkinnableDataContainer with an ArrayCollection dataProvider of about 15-20 items
2. Create an extremely basic skinClass (see CODE SNIPPET below)
3. Specify the skinClass in the SkinnableDataContainer
Actual Results: CPU goes to 100% and stays there. Happens in IE and Firefox
Expected Results: CPU should stay around 5-20%
Workaround (if any): Do whatever you need to do not to use a skinClass. In my case all I was using the skin for was to specify the vertical gap (and to have it ready for future skinning), so instead I specified the gap in the SkinnableDataContainer, like so:
<!-- states -->
<fx:Metadata>
[SkinState("normal")]
</fx:Metadata>
<!-- layout -->
<s:layout>
<s:VerticalLayout gap="15" paddingTop="0" paddingLeft="15" />
</s:layout>
<!-- data provider -->
<s:dataProvider>
<s:ArrayCollection id="reportListItems" list="{_visibleReports}" />
</s:dataProvider>
CODE SNIPPET:
<?xml version="1.0" encoding="utf-8"?>
<s:Skin
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Metadata>
[HostComponent("reportcenter.components.reports.ReportList")]
</fx:Metadata>
<!-- data group -->
<s:DataGroup id="dataGroup" top="0" bottom="0">
<s:layout>
<s:VerticalLayout gap="15" paddingTop="0" paddingLeft="15" />
</s:layout>
</s:DataGroup>
</s:Skin>