Skip to content

Commit

Permalink
Fixed the "next page" button disabled state.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemmermann committed Sep 23, 2024
1 parent ab3130b commit f8658bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private void createButtons() {
nextButton.setMinWidth(Region.USE_PREF_SIZE);
nextButton.visibleProperty().bind(view.pageCountProperty().greaterThan(1).and(view.showPreviousNextPageButtonProperty()));
nextButton.managedProperty().bind(view.showPreviousNextPageButtonProperty());
nextButton.disableProperty().bind(view.pageProperty().lessThan(view.getPageCount() - 1).not());
nextButton.disableProperty().bind(view.pageProperty().lessThan(view.pageCountProperty().subtract(1)));

lastPageButton = createLastPageButton();
lastPageButton.setGraphic(new FontIcon(MaterialDesign.MDI_PAGE_LAST));
Expand Down

0 comments on commit f8658bc

Please sign in to comment.