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

[flex_next] Skinny gradients drawn with MXML graphics tags often render incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Follow steps from SDK-27932

      Actual Results:
      See same bug

      Expected Results:
      Ditto

      Workaround (if any):
      SDK-27932 was resolved by working around this general bug, only for the specific case of the prepackaged wireframe SDK skins (the workaround was to use multiple thin lines to emulate a gradient – hardly ideal). Any user content that contains skinny gradients will still hit this bug.

      The core problem is that, when the SDK draws gradients it first scales them up to a huge size (determined by a constant) before scaling them back down to the actual shape's bounds. This pair of extreme rescales triggers a loss of precision in Flash Player, which causes the gradient to draw incorrectly.

      FP suggested simply scaling the gradient directly to the shape's size to avoid this problem (or scaling to an intermediate size that is closer to the actual shape size, e.g. within an order of magnitude or so).

      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: