Pivot
  1. Pivot
  2. PIVOT-166

WatermarkDecorator paints outside its bounds

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: wtk-effects
    • Labels:
      None

      Description

      Run the WatermarkDecoratorTest to see this behavior. WatermarkDecorator reports the component's bounds in getBounds(), it uses an identity transform, and it doesn't alter the clip rect of the graphics, yet the watermark is being painted outside the bounds of the decorated component (in the case of the test, the decorated component is the CardPane that lives in the TablePane's row beklow the line).

        Activity

        Todd Volkert created issue -
        Todd Volkert made changes -
        Field Original Value New Value
        Summary WatermarkDecorator overruns its bounds Decorators are given incorrect clip rect
        Description Run the WatermarkDecoratorTest to see this behavior. WatermarkDecorator reports the component's bounds in getBounds(), it uses an identity transform, and it doesn't alter the clip rect of the graphics, yet the watermark is being painted outside the bounds of the decorated component (in the case of the test, the decorated component is the CardPane that lives in the TablePane's row beklow the line).

        It's possible that the Graphics.rotate() that WatermarkDecorator applies in update() is the cause of this, and maybe it should return a rotate transform in getTransform() - this is where I'll start the investigation.
        Run the WatermarkDecoratorTest to see this behavior. WatermarkDecorator reports the component's bounds in getBounds(), it uses an identity transform, and it doesn't alter the clip rect of the graphics, yet the watermark is being painted outside the bounds of the decorated component (in the case of the test, the decorated component is the CardPane that lives in the TablePane's row beklow the line).
        Greg Brown made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.3 [ 12313779 ]
        Resolution Won't Fix [ 2 ]
        Todd Volkert made changes -
        Summary Decorators are given incorrect clip rect WatermarkDecorator paints outside its bounds
        Fix Version/s 1.3 [ 12313779 ]
        Todd Volkert made changes -
        Resolution Won't Fix [ 2 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Todd Volkert made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Todd Volkert
            Reporter:
            Todd Volkert
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development