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

[TableCell] TableCell does not refresh

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8u20
    • 8
    • javafx
    • OSX, JavaFX 8u Head

    Description

      Under some circumstances a TableView does not update its content.

      I tracked it down to TableViewSkinBase where there are two flags
      * needCellsReconfigured
      * needCellsRebuild

      in TableViewSkinBase.layoutChildren, if needCellsReconfigures is set the flag for needCellsRebuild is not queried and thus is not pushed down to the flow.
      So, if BOTH flags are set, the cells will not be rebuild and the code to reconfigure a cell does not update its content.

      Attached you will find a patch which fixed that and the bug is gone.

      It simply changes the ordering of querying the flags to
      * needCellsRecreated
      * needCellsRebuilt
      * needCellsReconfigured

      Attachments

        Activity

          People

            jgiles Jonathan Giles
            mivankovijfx Mario Ivankovits (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: