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

wrong size in custom itemRenderers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.5 (Release)
    • None
    • mx: List
    • None
    • Affected OS(s): Mac
      Affected OS(s): Mac OS 10.6
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1. Use a UIComponent as an itemRenderer of a List (make it an IListItemRenderer first).
      2. trace() the unscaledWidth and unscaledHeight in the components's updateDisplayList() method.

      Actual Results:
      The component's updateDisplayList method will be executed twice. The first time the unscaledWidth und unscaledHeight are correct (the size of the row). The second time (and last time) both are 0.

      Expected Results:
      UnscaledWidth and unscaledHeight should (at least) be the same as the size of the list's row. Even when I explicitly set a measuredWidth and measuredHeight in the component, it does not work. In DataGrid I found the same bug, also in Flex 4.1. I tried to use Container as base class too - no difference. See the example project in the attachment.

      Workaround (if any): Unfortunately not.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: