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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • fx2.1
    • fx2.0.1, fx2.0.2
    • javafx
    • NetBeans 7.0.1 with JavaFX2.0
      NetBeans 7.1 RC2 with JavaFX2.0.2

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: