You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Tonic <an...@hotmail.fr> on 2014/11/24 10:53:24 UTC
Datagrid - Rectangle bounds problem
Hi everybody,
I have a problem with datagrid, when I fill with a big dataprovider, the
bounds of datagrid is bigger than that is display. So the elements display
on bottom of datagrid and smallest depth are unreachable.
If I select "show redraw regions" options with Flash Player, I can see that
the height is bigger than the real height display (red rectangle display in
image).
With the Flex SDK 4.6, this problem seems not appear, but with the Flex SDK
4.9 to SDK 4.13, the problem appears.
With this sample, you can test the problem :
[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"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="955" minHeight="600"
creationComplete="application1_creationCompleteHandler(event)"
>
<fx:Script>
</fx:Script>
<s:TextInput id="ti" horizontalCenter="0" bottom="50" prompt="sample..."
width="300"/>
<s:VGroup horizontalCenter="0" width="50%" paddingLeft="20"
paddingRight="20" paddingTop="20" paddingBottom="20">
<s:DataGrid width="100%" requestedRowCount="5" id="dg">
<s:columns>
<s:ArrayList>
<s:GridColumn dataField="index" headerText="Index" />
<s:GridColumn dataField="label" headerText="Test" />
</s:ArrayList>
</s:columns>
</s:DataGrid>
</s:VGroup>
</s:Application>
[/CODE]
<http://apache-flex-users.2333346.n4.nabble.com/file/n8855/datagrid_flex_bound_problem.jpg>
It's a bug ?
Tanks :)
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Datagrid-Rectangle-bounds-problem-tp8855.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: Datagrid - Rectangle bounds problem
Posted by Tonic <an...@hotmail.fr>.
Thanks for your help, I have created an issue.
https://issues.apache.org/jira/browse/FLEX-34644?jql=project%20%3D%20FLEX
++ ^^
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Datagrid-Rectangle-bounds-problem-tp8855p8872.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: Datagrid - Rectangle bounds problem
Posted by Alex Harui <ah...@adobe.com>.
On 11/24/14, 1:53 AM, "Tonic" <an...@hotmail.fr> wrote:
>Hi everybody,
>
>I have a problem with datagrid, when I fill with a big dataprovider, the
>bounds of datagrid is bigger than that is display. So the elements display
>on bottom of datagrid and smallest depth are unreachable.
>
>It's a bug ?
Yes, it is a bug. Great find! It appears that when the DataGrid’s Grid
added internal GridViews to handle locked rows and columns it threw off
the background drawing logic. The Grid in 4.9 and later is drawing the
background without regard to the fact that the layout is virtual.
I have a fix locally that I’ll run through some tests and check in. If
you can file a JIRA issue at https://issues.apache.org/jira/browse/FLEX
then you’ll get the credit for reporting it.
Thanks,
-Alex