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

TableView - ScrollBar does not "sync" with rowcount

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • javafx
    • Windows Vista

      I tried to implement a load-on-demand TableView with a custom Model. The model implementation returns the "current" rowcount which is higher than the visible rows, until all rows are fully loaded, in the TableView (of course I have some problems with row calculation because I don't know the row height). Independent of the available rows, the vertical scrollbar does not change its values. The table view reads and displays all available rows, if I resize the window/stage - but I can't use the Scrollbar because it uses the "first" instead of the current row count. The navigation with arrow keys is also a problem in that case, because the table doesn't scroll to the selected row.

      I tried refresh() and/or requestLayout(), but that did not help.

        1. DummyLoadOnDemandSequence.java
          3 kB
          René Jahn

            jgiles Jonathan Giles
            rjahnjfx René Jahn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: