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

Dirty opts bug when toggling Group's visible property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8, 9
    • javafx
    • Cause Known

      Attached is a simple test program modified from HelloRectangle to toggle the visible property of Group and Rectangle. There is dirty opts bug render nothing when root (Group) visible property is set from false to true.

      To reproduce the bug:
      1) Compile and run GroupDirtyOptsBug.java
          You should see a Red rectangle.

      2) Hit "g" to toggle root's visible to false.
          You should see the Red rectangle disappear.

      3) Hit "s" to print the visible status. You should expect the following printed:
      root.isVisible = false, rect.isVisible = true
       
      4) Hit "g" again to toggle root's visible to true but the Red rectangle didn't appear.

      5) Hit "s" to print the visible status. You should expect the following printed:
      root.isVisible = true, rect.isVisible = true

      Now, run the program with -Dprism.dirtyopts=false to disable dirtyopts.
      You should see the Red rectangle toggle as you hit "g" to toggle root's visible.

            Unassigned Unassigned
            ckyang Chien Yang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: