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

[CSS] Using the same node several times as the root node for a Scene causes root styleclass to be added multiple times

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4 P4
    • None
    • 8u20
    • javafx

      In my app I often temporarily switch out the scene's root node for another before changing to back. I noticed that every time a switch occurs, another "root" styleclass gets added to my node. I think this is a bug ... and well, perhaps in the long run, a memory leak :-)

      Workaround: remove "root" style class before doing scene.setRoot(myNode);

            jgiles Jonathan Giles
            jhendrikx John Hendrikx
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: