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

Pagination is having odd behavior when changing page count

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8u40
    • javafx
    • JavaFX 8_40, JDK 8_40 64bit, Windows 7 64bit, NetBeans 8.0.2

      The Pagination control is described in RT-19375 as being a different kind of TabPane.

      Unfortunately the Pagination control exhibits some weird behavior when changing its page count : it resets its current page index to index 0 which is odd.

      In my context of use, some pages can be removed or added depending of some configuration set by the user. When the page count change, Pagination resets its currentPageIndex to 0 all the time. This makes pagination to plan a animation to the next pulse that will display page at index 0.

      If I manually set the currentPageIndex back to its original value, it plans a second animation that shows a the original page to be set back in the display area.

      So in the end we have a jerked animation of the very same page appearing in the control

      This makes the control confusing to use to the user.

      If Pagination was more like TabPane we would expect the currentPageIndex to :
       - not change when adding new pages to the page count -> the page on display stays the same and there is no animation at all.
      - being decremented to the last good page index when removing pages from the page count -> there is a animation to the last good page.

            Unassigned Unassigned
            fbouyajfx Fabrice Bouyé (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Imported: