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

Alex Harui commented on FLEX-28915:
-----------------------------------

Possible workaround:

Add script block to HomeView.mxml

        <fx:Script>
                <![CDATA[
                        private function fixDG():void
                        {
                                
systemManager.stage.addEventListener("orientationChanging", 
orientationChangingHandler, true);
                        }
                        
                        private function 
orientationChangingHandler(event:Event):void
                        {
                                dg.grid.invalidateDisplayList();
                        }
                ]]>
        </fx:Script>

Call it from creationComplete in view:


<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"; 
                xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView"
                creationComplete="fixDG()">

Let me know if this works for you, then we'll figure out a better actual fix 
for the SDK.

                
> Data disappears from DataGrid when tablet state changed from portrait to 
> landscape
> ----------------------------------------------------------------------------------
>
>                 Key: FLEX-28915
>                 URL: https://issues.apache.org/jira/browse/FLEX-28915
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: DataGrid
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): Google Android
> Language Found: English
>            Reporter: Adobe JIRA
>         Attachments: dataGridMobileRotate.zip
>
>
> Steps to reproduce:
> 1.Run attached app on Android tablet
> 2.Turn the tablet
> 3.
>  
>  Actual Results:
>  DataGrid looks empty
>  
>  Expected Results:
>  data should stay
>  
>  Workaround (if any):
>  on scroll data reappears

--
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

Reply via email to