You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by mo...@comcast.net on 2013/10/11 19:44:11 UTC
SDK 4.10 bugs (?) for spark datagrid column resize and sort
I changed the title of this thread now that I know the issue better.
Can someone run the small application below and let me know if you see the same thing I do?
I'm using FB 4.7 for what it's worth.
----- Original Message -----
From: modjklist@comcast.net
To: users@flex.apache.org
Sent: Friday, October 11, 2013 7:45:51 AM
Subject: Re: SKD 4.10 Spark Datagrid skin change
Thanks Lee,
I created a minimal test app to isolate the datagrid behavior I originally posted.
Can someone confirm the problem I'm seeing by running the application attached below?
Am I doing something wrong?
------ please run in SDK 4.6 and 4.10 and compare results ------
<?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"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="600" minHeight="600">
<fx:Declarations>
<fx:String id="sampleText">Lorem Ipsum is the standard dummy text of the typesetting industry.</fx:String>
</fx:Declarations>
<s:VGroup horizontalAlign="center" paddingLeft="30" paddingTop="30">
<s:Label text="1. Left-click (and hold) mouse on a column-separator in header, then drag it left and release it"/>
<s:Label text=" outside of header region. Notice the mouse icon does not change back to the normal pointer."/>
<s:Label text="2. Left-click (and hold) mouse anywhere in a header to sort, then drap mouse down outside of"/>
<s:Label text=" header region and release it. Notice the column-header color indicates mouse-down."/>
<s:DataGrid id="dg1">
<s:columns>
<s:ArrayList>
<s:GridColumn dataField="value" headerText="Column 1" width="200"/>
<s:GridColumn dataField="value" headerText="Column 2" width="200"/>
</s:ArrayList>
</s:columns>
<s:ArrayCollection>
<s:DataItem value="{sampleText}"/>
<s:DataItem value="{sampleText}"/>
<s:DataItem value="{sampleText}"/>
</s:ArrayCollection>
</s:DataGrid>
</s:VGroup>
</s:Application>
----- Original Message -----
From: "Lee Burrows" <su...@leeburrows.com>
To: users@flex.apache.org
Sent: Friday, October 11, 2013 2:40:05 AM
Subject: Re: SKD 4.10 Spark Datagrid skin change
The default skin for DataGrid has changed - if you're using a custom
skin you'll need to update it.
As it happens i only discovered this yesterday:
In 4.9.1 and previous, the skin contained:
<s:Grid ...>
<s:GridLayer name="backgroundLayer"/>
<s:GridLayer name="selectionLayer"/>
<s:GridLayer name="editorIndicatorLayer"/>
<s:GridLayer name="rendererLayer"/>
<s:GridLayer name="overlayLayer"/>
</s:Grid>
As of 4.10.0 it is:
<s:Grid ...>
<s:gridView>
<fx:Component>
<s:GridView>
<s:GridLayer name="backgroundLayer"/>
<s:GridLayer name="selectionLayer"/>
<s:GridLayer name="editorIndicatorLayer"/>
<s:GridLayer name="rendererLayer"/>
<s:GridLayer name="overlayLayer"/>
</s:GridView>
</fx:Component>
</s:gridView>
</s:Grid>
On 11/10/2013 07:26, modjklist@comcast.net wrote:
> Hi experts,
>
> I'm migrating my app from SDK 4.5.1 to 4.10, and I've noticed a change in spark datagrid behavior.
>
> In 4.10, if I place the mouse inside a spark datagrid header over the column separator, then left-click and drag the mouse outside of the header row, then release the left-click mouse button clearly outside the header region, the mouse icon remains as the resize-column icon instead of the mouse pointer icon.
>
> Can anyone confirm or deny this behavior for SDK 4.10 by repeating this experiment?
>
> In 4.5.1 and 4.6 SDKs, the mouse icon changes back as you'd expect.
>
> If this is not a bug in SDK 4.10, and it only occurs for me, which skin file controls this behavior? I've updated this skin,
>
> /Adobe Flash Builder 4.10/sdks/4.10/frameworks/projects/spark/src/spark/skins/spark/DefaultGridHeaderRenderer.mxml
>
> but it didn't change this behavior.
>
> Is there another skin that I may have changed in 4.5.1 or other file that controls this behavior that I should update from 4.5.1 to 4.10 SDK?
>
> Thanks in advance for any hints.
>
--
Lee Burrows
ActionScripter