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

Weird behaviour with AnchorPane

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 8
    • 7u10
    • javafx
    • JDK 7u10 b16, Mac OS X 10.8.2

      I wrote the attached example to test scrolling with a trackpad (touch events).
      It works fine: the ImageView is clipped by the rectangle and scrolls underneath.

      When I uncomment the two lines to position the viewGroup using anchors instead of translateX/Y, everything is all over the place when I scroll.
      If I remove the anchors and use translateX/Y to get the same positioning, everything works just fine again.

      Am I missing something here, or is this a bug in the AnchorPane ?

            msladecek Martin Sládeček
            simpejfx Steven Van Impe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: