flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédéric Leroy (JIRA) <j...@apache.org>
Subject [jira] [Created] (FLEX-33944) Cannot scroll to the bottom when using variable row height and calculateRowHeight() with some rows are very large
Date Thu, 28 Nov 2013 13:59:35 GMT
Frédéric Leroy created FLEX-33944:
-------------------------------------

             Summary: 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: Apache Flex 4.9.0, Adobe Flex SDK 4.6 (Release), Apache Flex 4.11.0
            Reporter: Frédéric Leroy


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)

Mime
View raw message