You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Frédéric Leroy (JIRA)" <ji...@apache.org> on 2013/11/28 15:01:36 UTC

[jira] [Updated] (FLEX-33944) Cannot scroll to the bottom when using variable row height and calculateRowHeight() with some rows are very large

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

Frédéric Leroy updated FLEX-33944:
----------------------------------

    Attachment: flex-33944.fxp

Sample to reproduce.
AdvancedDataGridFixed.as implements a workaround.

> Cannot scroll to the bottom when using variable row height and calculateRowHeight() with some rows are very large
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33944
>                 URL: https://issues.apache.org/jira/browse/FLEX-33944
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Advanced Data Grid
>    Affects Versions: Adobe Flex SDK 4.6 (Release), Apache Flex 4.9.0, Apache Flex 4.11.0
>            Reporter: Frédéric Leroy
>         Attachments: flex-33944.fxp
>
>
> How to reproduce:
> 1. Run the attached Main.mxml application
> 2. Scroll down
> Observed:
> Cannot scroll past the large row.
> Expected:
> It should be possible to scroll past the large row.
> The calculateRowHeight() method of the ADG can be overridden to allow to customize the height of rows in variable row height mode. In our application we override it to synchronize the layout of rows with an external component.
> The problem here is that calculateRowHeight() this method is not used by the ADG in all places where the height of rows is measured. In particular it is not used in AdvancedDataGridBaseEx.adjustVerticalScrollPositionDownward(). As a result when some row get a large height it becomes impossible to scroll past such a large row.
> See the attached AdvancedDataGridFixed extends AdvancedDataGrid and implements a workaround for this issue, lines 194-213.



--
This message was sent by Atlassian JIRA
(v6.1#6144)