angular-ui/ui-grid

Pagination missing rows

Open

#3,227 建立於 2015年4月7日

在 GitHub 查看
 (3 留言) (0 反應) (1 負責人)JavaScript (5,395 star) (2,496 fork)batch import
good first issuetype: bug

描述

With enableVerticalScrollbar set to false, pagination doesn't show all the rows on tables with automatically computed lengths. see this plunker: http://plnkr.co/edit/KThG1GEIvDYYyOqQqrpH?p=preview

I was expecting that if I set the paginationPageSize to, say, 10, I would see 10 rows on a page, rather than 9 or (if the filtering is enabled) 8.

I know users can sort of scroll inside the table even when the scrollbar is turned off, but that's not an obvious feature and many users will simply never see the last rows.

At the moment I am working around it by setting minRowsToShow to one more than paginationPageSize, but that isn't always suitable. Neither is manually setting the height of the table in css. Sometimes I will have tables with fewer rows than the paginationPageSize, and I want the table length to shrink accordingly.

Am I thinking about this wrong or is this an issue?

cheers

John

貢獻者指南