0 Replies Latest reply on May 20, 2009 3:39 PM by Jason Szeto

    [svn:fx-trunk] 7155: Line bug fixes when using gradient strokes

    Jason Szeto Level 3

      Revision: 7155

      Author:   jszeto@adobe.com

      Date:     2009-05-20 14:39:39 -0700 (Wed, 20 May 2009)

       

      Log Message:

      ***********

      Line bug fixes when using gradient strokes

       

      SDK-21272 - Lines with gradient (LinearGradientStroke) draw as solid color if perfectly vertical / horizontal

       

      StrokedElement was not taking the stroke weight into account when passing the bounds to the stroke. The gradient strokes rely on the bounds to help them transform the gradient to fit the shape of the stroke.

       

      SDK-21274 - Line with gradient stroke does not draw properly

       

      This bug occurs when the Line has a non-zero x and/or y values and is sharing a DisplayObject. StrokedElement was passing the stroke the measuredX and measuredY position as part of the bounds. Instead, I've changed it to pass in drawX + measuredX and drawY + measuredY which accounts for the drawing offset position.

       

      QE Notes: Test Line w/ gradient strokes

      Doc Notes: None

      Bugs: SDK-21272, SDK-21274

      Reviewer: Evtim

       

      Ticket Links:

      ************

          http://bugs.adobe.com/jira/browse/SDK-21272

          http://bugs.adobe.com/jira/browse/SDK-21274

          http://bugs.adobe.com/jira/browse/SDK-21272

          http://bugs.adobe.com/jira/browse/SDK-21274

       

      Modified Paths:

      **************

          flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/StrokedEleme nt.as