flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maurice Amsellem (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33867) DataGrid row doesnt resized on hovered - with custom itemRenderer and dg.variableRowHeight=true
Date Sat, 02 Nov 2013 22:57:17 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13812211#comment-13812211

Maurice Amsellem commented on FLEX-33867:

Hi, I have tested your project and debugged through the DataGrid classes.
As far as I understand the code, DataGrid was not designed to allow dynamic change of row
height, especially during temporary states just as hovering on an item.
The only situation that seem to trigger a full re-layout of item renderers is horizontal or
vertical scroll position change, and of course when the dataProvider content is changed.
( see : GridViewLayout.updateDisplayList() line 941 and following).

I tried various hacks to force the grid to relayout the item renderers, but none did work.

My conclusion is that this is not a bug, but a design limitation of spark DataGrid.

I suggest to turn it to a feature request, but you are not guaranteed it will ever be implemented.

Moreover, and that's a personal opinion, I don't find that increasing the height of a datagrid
cell when hovered is user-friendly, as it causes some abrupt change in the datagrid display.
I suggest you stick to usual way of managing this ( datatip, overlay, etc...)

> DataGrid row doesnt resized on hovered - with custom itemRenderer and dg.variableRowHeight=true
> -----------------------------------------------------------------------------------------------
>                 Key: FLEX-33867
>                 URL: https://issues.apache.org/jira/browse/FLEX-33867
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: DataGrid
>    Affects Versions: Apache Flex 4.11.0
>            Reporter: Sebastian Wichmann
>            Priority: Minor
>              Labels: Datagrid, gridrowheight
>             Fix For: Apache Flex 4.9.0
>         Attachments: TestItemRenderer.mxml, TestProject.mxml
> I create a itemRenderer with a hovered state. On hovered I wanna change the size of this
itemRenderer but the row doesnt resized.
> For example, see attached files.
> Workaround:
> Call on resize:
> grid.invalidateDisplayList();

This message was sent by Atlassian JIRA

View raw message