Clarity: Paging to last page of large dataset --> grid disappears !

Created on 22 Mar 2017  路  5Comments  路  Source: vmware/clarity

Select one ... (check one with "x")

[X] bug
[ ] feature request
[ ] enhancement

Expected behavior

paging should work for large number of rows independent of total row count and pageSize.

Actual behavior

For some paging settings --> selecting the last page causes the grid to disappear including header and footer ! Expected last page of data is not accessible !

Reproduction of behavior

Create a grid with 1200 Users (rows)
Set pageSize to 473. Then select 3rd page and grid disappears.
We were able to repro with various page and data sizes as well.

(some sort of floating point paging calculation error ?)

plunkr: https://plnkr.co/edit/zZZOW0utKuNZS572CaGI?p=preview

Environment details

  • Angular version: 2.4.1

  • Clarity version: 0.8.11

  • OS and version: MacOs 10.11.2

  • Browser: Chrome, Firefox,...

bug

Most helpful comment

Thank you for the plunker. 馃憤

As Jinnie mentioned, this is a general issue with the placeholder since the switch to flexbox. We have 2 or 3 issues related to this, hopefully we can fix them all at once.

All 5 comments

Could you please post a plunker reproducing the error? Thank you.

OK Added plunker to bug description: https://plnkr.co/edit/zZZOW0utKuNZS572CaGI?p=preview

@bobsheehan1
The datagrid on the last page gets "squeezed" up to the top by unpredicted sub-component behavior, which probably conflicts with the recent datagrid content scroll feature.

Here's a plunker that simplifies and illustrates the case:
https://plnkr.co/edit/CdJH5W7PUE4jKPkdKLYp?p=preview
The bottom half is growing in size (min-height) if you play with the page size.

@youdz, it seems someone had a premonition, writing this comment :rofl:

I hate doing this, with these 36px...

Thank you for the plunker. 馃憤

As Jinnie mentioned, this is a general issue with the placeholder since the switch to flexbox. We have 2 or 3 issues related to this, hopefully we can fix them all at once.

Hi there 馃憢, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.

Was this page helpful?
0 / 5 - 0 ratings