0 Replies Latest reply on Feb 18, 2008 3:11 PM by GaryDJ

    Why does this cell renderer work for a listbox, but not for a datagrid?

    GaryDJ
      I have a cell renderer called MultiLineCell.as which is used to center data vertically in a listbox or datagrid cell. It works perfectly for the listbox cell, but for the datagrid, the data is not centered until you roll over the cell.

      I have built a simple example showing this problem that can be downloaded here.

      In the example I have built, you will see that the listbox is displayed correctly when you run the .fla, but when you click the "create grid" button, the grid is created, but data is not centered on the first page until you roll over the row.

      Is there any way, even using a workaround or hack (simulate a rollover?), to have the data centered correctly when it is initially displayed in the datagrid?

      Thanks.