AnchorPane: removing anchors has no effect

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: jfx23
    • Component/s: javafx
    • None

      AnchorPane::set(Bottom,Left,Right,Top)Anchor method mentions that "Setting the value to null will remove the (anchor) constraint."

      The expectation is that clearing the anchor constraint should re-position the node to an un-anchored state, but the node remains in its anchored location.

      To reproduce:

      - run the attached code
      - click [Set Anchors] button
      - observe the node moving to the proper location and its properties updated (pane-XXX-anchor) (correct behavior)
      - click [Clear Anchors] button
      - observe properties cleared (correct behavior)
      - observe the node remaining in its anchored location (INCORRECT behavior)

            Assignee:
            Unassigned
            Reporter:
            Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: