You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "João Saleiro (JIRA)" <ji...@apache.org> on 2013/08/15 20:56:57 UTC

[jira] [Commented] (FLEX-33666) When scrolling a Spark Datagrid with the mousewheel after starting an itemEditor session, the itemEditor doesn't follow it's cell

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

João Saleiro commented on FLEX-33666:
-------------------------------------

I just discovered today that if the DataGrid has mouseEnabled = false , if you try to scroll while editing a cell you'll get a buggy behavior similar to what happens when you use the mousewheel. So this issue is a bit more problematic than I thought on the beginning.
Maybe solving it by listening to scroll events and adjust the item editor position accordingly?
                
> When scrolling a Spark Datagrid with the mousewheel after starting an itemEditor session, the itemEditor doesn't follow it's cell
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33666
>                 URL: https://issues.apache.org/jira/browse/FLEX-33666
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: DataGrid
>    Affects Versions: Apache Flex 4.10.0
>         Environment: AIR 3.8, Windows 8.
>            Reporter: João Saleiro
>              Labels: datagrid, itemeditor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Create a simple editable Spark Datagrid that has enough lines to make the scroller appear. Click a cell to start it's editing session, then scroll the Datagrid. 
> The item Editor doesn't follow it's cell.
>  <s:DataGrid width="300" height="100" dataProvider="{dgArray}" editable="true"> 
>         <s:columns> 
>             <s:ArrayList> 
>                 <s:GridColumn dataField="Artist"/> 
>                 <s:GridColumn dataField="Price"/> 
>             </s:ArrayList> 
>         </s:columns> 
>     </s:DataGrid> 
> <fx:Script> 
>         <![CDATA[ 
>             import mx.collections.ArrayCollection; 
>             [Bindable] 
>             private var dgArray:ArrayCollection = new ArrayCollection([{ Artist: 'Pavement', Album: 'Slanted and Enchanted', Price: 11.99 }, { Artist: 'Pavement', Album: 'Slanted and Enchanted', Price: 11.99 }, { Artist: 'Pavement', Album: 'Slanted and Enchanted', Price: 11.99 }, { Artist: 'Pavement', Album: 'Slanted and Enchanted', Price: 11.99 }, { Artist: 'Pavement', Album: 'Slanted and Enchanted', Price: 11.99 }, { Artist: 'Pavement', Album: 'Slanted and Enchanted', Price: 11.99 }, { Artist: 'Pavement', Album: 'Slanted and Enchanted', Price: 11.99 }, { Artist: 'Pavement', Album: 'Slanted and Enchanted', Price: 11.99 }, { Artist: 'Pavement', Album: 'Slanted and Enchanted', Price: 11.99 }, { Artist: 'Pavement', Album: 'Slanted and Enchanted', Price: 11.99 }, { Artist: 'Pavement', Album: 'Slanted and Enchanted', Price: 11.99 }, { Artist: 'Pavement', Album: 'Brighten the Corners', Price: 11.99 }]); 
>         ]]> 
>     </fx:Script> 

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