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

Edward Trochim edited comment on FLEX-33542 at 5/14/13 3:05 PM:
----------------------------------------------------------------

This is the workaround I am using in my application.

I pulled the CursorStretch.fxg file from the SDK source into my project. I then 
set stretchCursor="{CursorStretch}" for each DataGrid and AdvancedDataGrid in 
my project. You can also set advDataGrid.setStyle("stretchCursor", 
CursorStretch); both work equally well.

It also seems you can apply the strechCursor via CSS like so:

                mx|AdvancedDataGrid {
                        stretchCursor: ClassReference("graphics.CursorStretch")
                }
                
      was (Author: etrochim):
    This is the workaround I am using in my application.

I pulled the CursorStretch.fxg file from the SDK source into my project. I then 
set stretchCursor="{CursorStretch}" for each DataGrid and AdvancedDataGrid in 
my project. You can also set advDataGrid.setStyle("stretchCursor", 
CursorStretch); both work equally well.

What is interesting is what I discovered while coming up with this workaround. 
If you set stretchCursor to the CursorStretch class via CSS then the issue will 
present itself. However, if you set stretchCursor to an embedded image in CSS 
then the issue will go away. I did not use this method though because this 
caused the cursor to be left aligned instead of center aligned, causing the 
cursor to appear directly to the right of the separator.
                  
> mx:AdvancedDataGrid header column separators display embedded SWF on mouseover
> ------------------------------------------------------------------------------
>
>                 Key: FLEX-33542
>                 URL: https://issues.apache.org/jira/browse/FLEX-33542
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: .Unspecified - Framework
>    Affects Versions: Apache Flex 4.9.0
>            Reporter: Edward Trochim
>            Assignee: Alex Harui
>         Attachments: AdvDataGridBugTest.zip, CursorButton.as
>
>
> The mx:AdvancedDataGrid control in Flex 4.9.1 is acting very oddly when the 
> application has an embedded SWF. When a user mouses over the header column 
> separators in the AdvancedDataGrid the SWF will display on top of the mouse 
> cursor. A demonstration of this behavior can be found here: 
> https://dl.dropboxusercontent.com/u/11780410/AdvDataGridBugTest/AdvDataGridBugTest.html

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