ce icon indicating copy to clipboard operation
ce copied to clipboard

Scroll to bottom works incorrectly, when chrome has certain scales.

Open UrbanNuke opened this issue 6 years ago • 5 comments

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.

UrbanNuke avatar May 27 '20 16:05 UrbanNuke

Are you using lazyLoading, tableHeight? Would be nice to have the initialization parameters you have used.

pphod avatar May 29 '20 19:05 pphod

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]
})

UrbanNuke avatar Jun 03 '20 13:06 UrbanNuke

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.

thelightbringer avatar Jul 29 '20 06:07 thelightbringer

image 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.

thelightbringer avatar Jul 29 '20 06:07 thelightbringer

Okay, perhaps when there is a native scrollbar (and not the thin one), this issue appears.

thelightbringer avatar Jul 29 '20 11:07 thelightbringer