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

Node.toFront/toBack don't work with Container layouts

    Details

      Description

      There is a conceptual conflict between the use of content to layout nodes in a Container, and the use of content to control z-ordering.

      As a simple example, if you have a Tile layout the order you insert the Nodes into content controls the left-to-right and top-to-bottom order of the Nodes. As a result, when you call toFront or toBack on one of the nodes in the Tile, it will not only change the z-order, but also move the position of the Node (which is usually not desirable).

      It seems like the z-order of Nodes should be independent of the order they are stored in the content sequence.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                amfowler Anne Fowler (Inactive)
                Reporter:
                schin Stephen Chin (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: