Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work when the rowspan is very big #184

Open
bmarotta opened this issue Jan 12, 2022 · 3 comments
Open

Doesn't work when the rowspan is very big #184

bmarotta opened this issue Jan 12, 2022 · 3 comments

Comments

@bmarotta
Copy link

bmarotta commented Jan 12, 2022

In the case where the rowspan is very big (apparently 4 times bigger than the rows_in_block), the cells in the last columns do not render.

An example can be seen here

https://codesandbox.io/s/clusterize-js-large-rowspan-f8ebl?file=/src/index.ts

@NeXTs
Copy link
Owner

NeXTs commented Jan 12, 2022

.clusterize-scroll element's height must be limited by css properties: max-height + overflow: auto
https://github.com/NeXTs/Clusterize.js/blob/master/clusterize.css#L1-L7

@bmarotta
Copy link
Author

bmarotta commented Jan 12, 2022

Hi NeXTs,

Thanks for the tip. Looks better, but still not perfect. For some reason there is a big gap every ~200 rows (check screenshot). I took the random component from the test so that each row always grow by 2. You can check for yourself:

image

Thanks again

@NeXTs
Copy link
Owner

NeXTs commented Jan 13, 2022

I'm afraid the plugin is not designed to work with rowspan.
The only way to make it work as you want is to make the whole "Row" section in single <tr> tag with nested table inside this <tr>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants