Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-12916

RTE in DataGrid when resized so that less than one row is visible due to bug in measure()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: DataGrid
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Internet Explorer 7.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a DataGrid with one locked Column, enough other columns to cause the HorizontalScrollbar to display, 2 or more rows of data displayed.
      2. Launch application, resize browser making window smaller vertically.
      3. When size of the DataGrid becomes small enough that less than one complete row is visible there is an RTE

      Actual Results:RTE thrown by lockedColumnContent when it access listItems[0].length as listItems[0] is null due to the renderer having been destroyed.

      Expected Results:No RTE

      Workaround (if any):None.

      Having looked through the code it seems to me that DataGrid's
      measure function has a bug in its measuredMinHeight calculation. Both
      on line 1361 of DataGrid and line 3215 of ListBase the height of the
      scrollbar is deducted causing the minHeight to be too small by 16pixels.

      The calculaton starts of as 46px in ListBase:
      2*22(rowHeight)+18(border+scrollbar)-16(scrollbar)=46
      Then in DataGrid:
      46-16(scrollbar)=30
      At 30 pixels there is not enough height to display the header and a row
      and I think this then causes the lockedColumnContent to do some stuff
      which ends up in a RTE.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: