Scroll to bottom works incorrectly, when chrome has certain scales.
Hi everyone!
I've found a bug, when chrome has 80, 90 and 110 percents scales, scroll stucks after little move to bottom (in my case I've stopped on 130 line). If i resize chrome window and do it again, it's working, scroll to bottom is working correctly. Scroll to top works with any scales. Jexcel table hasn't any wrappers.
That bug reproduces only in fullsize (not fullscreen) window in Chrome. In my case chrome v.81.0.4044.138 Firefox 76.0.1, IE 11 haven't that bug.
Are you using lazyLoading, tableHeight? Would be nice to have the initialization parameters you have used.
Yes, i'm using lazyLoading. My initialization parameters:
jexcel(this.spreadsheet.nativeElement, {
data: sheets[0].data,
columns: sheets[0].columns.map((title: string) => ({
title,
align: 'left',
width: 280,
wordWrap: true,
})),
tableWidth: '100%',
tableHeight: '100%',
tableOverflow: true,
lazyLoading: true,
loadingSpin: true,
contextMenu: () => false,
columnSorting: false,
columnResize: false,
minDimensions: [sheets[0].columns.length, sheets[0].data.length]
})
I'm also facing the same issue. When at 75%, the table scrolling freezes. Perhaps following part is not calculated correctly :
if (obj.content.scrollTop + obj.content.clientHeight >= obj.content.scrollHeight)
Thanks in advance.
Here I have 2 examples of calculations at 75%. First one is working, while the other one not working. (Note: Both these spreadsheets are used in different tabs in single page.)
The only difference is - the one which does not work has a horizontal scrollbar. So, I guess that is creating a problem.
Okay, perhaps when there is a native scrollbar (and not the thin one), this issue appears.