flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33052) Runtime error when using a chart in a module in an app that is also using charts
Date Sun, 01 Sep 2013 05:58:51 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13755661#comment-13755661
] 

Alex Harui commented on FLEX-33052:
-----------------------------------

Another potential workaround is to make the child's default styles differ slightly from the
main app's default styles.  Then the child will register its own styles.  This presumes you
won't be changing styles from the parent to try to affect the child.

I attached a .css file with a fake css property in each selector that I found in the default
css file for Charts.  By adding the MXMLC compiler option
    -theme+=cssNoMerge.css
to the child app only, the chart showed up and there were no errors thrown.
                
> Runtime error when using a chart in a module in an app that is also using charts
> --------------------------------------------------------------------------------
>
>                 Key: FLEX-33052
>                 URL: https://issues.apache.org/jira/browse/FLEX-33052
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Charts
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Alex Harui
>         Attachments: chartsNoMerge.css
>
>
> This is a regression in 4.6. It doesn't matter if the modules are Spark or not. Works
fine in 4.5.1 and below.
> See attached FB project.
> Steps to reproduce:
> 1. Create an app that uses a chart and create a module that also uses a chart.
>  
>  Actual Results:
>  
> TypeError: Error #1009: Cannot access a property or method of a null object reference.
> 	at mx.charts.chartClasses::ChartBase/initStyles()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\chartClasses\ChartBase.as:1862]
>  
>  Expected Results:
>  
> No error and chart loads fine.
>  
>  Workaround (if any):
>  
>  Copy chart styles from module's parent styleManager into the module's own styleManager.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message