NeXTs / Clusterize.js

Tiny vanilla JS plugin to display large data sets easily
https://clusterize.js.org
MIT License
7.22k stars 414 forks source link

Header inside scrollpane creates spacing when the cluster changes. #149

Closed gregorvoinov closed 6 years ago

gregorvoinov commented 6 years ago

HI,

I want to use your clusterize.js, but I have a problem. Above my table there is a bigger header, and that should be scrolled with the table. Therefore, the header and the table are in the same scrollpane. If I scroll now and the first time the table changes the cluster, there is a large spacing to the top of the scrollpane. If I use no header everthing is fine. My question is, is it possible to add multiple elements to the same scrollpane as the table or is that not possible with clusterrize.js?

image

image

best regards, gregor

NeXTs commented 6 years ago

Hello

Could you please provide example at codepen? I'll investigate what can be done

gregorvoinov commented 6 years ago

sure thank you very much ;) i will do it tonight, after work.

gregorvoinov commented 6 years ago

hi,

a very simplified codepen

at line 151, 301, 451.... you can see the effect.

thank you for your effort and support.

NeXTs commented 6 years ago

Well, additional element creates additional offset on the top. Unfortunately I don't have easy solution for that, it just wasn't intended to work this way.

gregorvoinov commented 6 years ago

That is a pity, then i have to find another solution, but thank you for taking a look.