Skip to content

Commit

Permalink
fix #482
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed May 31, 2016
1 parent af3deb8 commit ddf7fc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pagination/PaginationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ class PaginationList extends Component {
getPages() {
let pages;
let endPage = this.totalPages;
if (endPage <= 0) return [];
let startPage = Math.max(
this.props.currPage - Math.floor(this.props.paginationSize / 2),
this.props.pageStartIndex
Expand Down

0 comments on commit ddf7fc9

Please sign in to comment.