Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8108480

InnerShadow bounds returning padded bounds instead of content bounds even though the effect does not expand the image

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx1.2
    • Fix Version/s: fx1.3
    • Component/s: javafx
    • Labels:

      Description

      The ScrollBar control reports boundsInParent / boundsInLocal bounds as being larger than they should be. If I comment out the inner shadow effect, then the bounds come out correctly. It appears that the call to effect.getBounds(xform, nodeInput) (line 33 of EffectFilter in scenario) is computing and returning the padded bounds as opposed to the content bounds which is what we would expect in this case.

      The first attached picture shows the bounds when the effect is commented out, the second shows the bounds when the effect is in place.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                flar Jim Graham
                Reporter:
                rbair Richard Bair
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: