flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLEX-21090) DataGrid height was not calculated correctly
Date Tue, 14 May 2013 02:21:16 GMT

     [ https://issues.apache.org/jira/browse/FLEX-21090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Justin Mclean resolved FLEX-21090.

    Resolution: Duplicate
> DataGrid height was not calculated correctly
> --------------------------------------------
>                 Key: FLEX-21090
>                 URL: https://issues.apache.org/jira/browse/FLEX-21090
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: DataGrid
>    Affects Versions: Adobe Flex SDK 3.4 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
> Steps to reproduce:
> 1. Create flex project and paste these code:
> <mx:DataGrid dataProvider="{totalDataGrid}" rowCount="6">
> 		<mx:columns>
> 			<mx:DataGridColumn dataField="name" headerText="Name"/>
> 			<mx:DataGridColumn dataField="split" headerText="Split"/>
> 			<mx:DataGridColumn dataField="paid" headerText="Paid"/>
> 			<mx:DataGridColumn dataField="total" headerText="Total"/>
> 		</mx:columns>
> 	</mx:DataGrid>
> 2. Provide datagrid with xml data.
> 3. Run the application
>  Actual Results: I see scroll bar at the right side, which mean datagrid did not calculate
correct height.
>  Expected Results: The datagrid is suppose to calculate necessary height, which I should
not see scroll bar at the right side.
>  Workaround (if any):
> 1. If you did not provide xml data by deleting dataProvider, just leave it as a blank
datagrid. You will not see the scroll bar. When you change the code to provide xml data, the
scroll bar will show up. This means datagrid does not calculate height for the font correctly.
If you I hard code the font size to lesser than 9, the scroll bar will not show. If I change
font size to greater than 9, the scroll bar will show up again.
> 2. If you compare a datagrid with no data, and one with data. Both with font size greater
than 9, but same size. You can make two screenshots of both cases and compare them, you will
see the one with datagrid's row height is higher than than the one without data. You need
to change rowCount to some number like 30, so it's more noticeable that one row height is
higher than the other one. The code I provide only has 6 rowCount, which is not that noticeable.

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

View raw message