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

Drop Indicator does not inherit styles in Lists

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.0 (Release)
    • None
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a subclass of (anything which is at least an ISimpleStyleClient) ProgrammaticSkin
      2. Assign as the skin for dropIndicator on any List-based class
      3. call getStyle("anyStyle") from within the class

      Actual Results:
      RTE:
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at mx.skins::ProgrammaticSkin/getStyle()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:522]

      Expected Results:
      Style settings would be inherited from the List as with item renderers.

      Workaround (if any):
      None. Forced to create a separate Skin for any style changes

      Patch attached:
      Simple add the following 2 lines to showDropFeedback() in ListBase after the creation of the dropIndicator (and fix imports)

      if (dropIndicator is ISimpleStyleClient)
      ISimpleStyleClient(dropIndicator).styleName = this;

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: