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

Layout of Control changes the origin of a line in its skin

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: fx2.0.1, fx2.0.2
    • Fix Version/s: fx2.1
    • Component/s: javafx
    • Labels:
    • Environment:

      NetBeans 7.0.1 with JavaFX2.0
      NetBeans 7.1 RC2 with JavaFX2.0.2

      Description

      In the attached program I create a control with a skin that has just one line from (0,0) to (1,0) (stored in member skinNode)
      After several calls to getNode() in the skin the layoutX and layoutY property of this line both get changed to 0.5
      As a result of this, the line representing the control doesn't coincide anymore with the red control line in the example and ends up in a different location after applying the same transform to both.

      The question is why the layoutX and layoutY of the line in the skin get changed.

        Attachments

          Activity

            People

            • Assignee:
              kwwong Kinsley Wong
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: