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

Shape.subtract gives unexpected result with padding of parent node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 9
    • javafx

      If any of the shapes participating in the subtraction belong to a hierarchy of a parent with padding, the padding manifests in the result, which can result in unexpected behavior from the user point of view. It is not completely clear to me if this is a bug.

      Taken from StackOverflow: https://stackoverflow.com/questions/51599995/why-does-the-resulting-shape-from-shape-subtract-appear-at-an-incorrect-positi

      The answer there includes a reproducer code snippet and analysis. Comment out and uncomment the critical lines according to the description to reproduce all cases.

      Other Shape methods are probably also affected, though I didn't test.

            kcr Kevin Rushforth
            nlisker Nir Lisker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: