Getting some weird and unexpected behavior.
  
With useVirtualLayout='false' then the grid takes up the whole screen
(expected). 
With useVirtualLayout='true' then the grid takes up half the screen
(unexpected).  

Here is the code:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
                           xmlns:s="library://ns.adobe.com/flex/spark" 
                           initialize="init(event)" height="100%">
        <fx:Declarations>
                
        </fx:Declarations>
        <fx:Script>
                
        </fx:Script>

        <s:layout >
                 
                <s:VerticalLayout useVirtualLayout="false">             
                </s:VerticalLayout>
        </s:layout>
        
        <s:DataGrid dataProvider="{arr}"
                                height="100%" width="100%"
                                
                                horizontalScrollPolicy="on" 
                                verticalScrollPolicy="on"

                                lockedColumnCount="2"   
                                lockedRowCount="4"

                                editable="false"
                                sortableColumns="false"
                                resizableColumns="false"
                                dragMoveEnabled="false"
                                draggableColumns="false"
                                >
                <s:columns>
                        <s:ArrayList>

                                <s:GridColumn dataField="cell_0" width="100"/>
                                .....
                                <s:GridColumn dataField="cell_49" width="100" />
                        </s:ArrayList>
                </s:columns>
        </s:DataGrid>
</s:Application>




--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Flex-Datagrid-MX-vs-Spark-tp9314p9329.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to