angular-ui/ui-grid

Pagination missing rows

Open

#3,227 创建于 2015年4月7日

在 GitHub 查看
 (3 评论) (0 反应) (1 负责人)JavaScript (2,496 fork)batch import
good first issuetype: bug

仓库指标

Star
 (5,395 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南