ce icon indicating copy to clipboard operation
ce copied to clipboard

Lazyloading issue on 5k resolution

Open bilencekic opened this issue 7 years ago • 3 comments

This issue is a bit weird and hard to reproduce any only happens on high resolution monitors. I can see 57 rows on visible area and during scrolldown, excel grid loads additional +30 rows which is fine. When you scroll more all +30 is deleted and you see 100 rows again. there is a glitch there. It does not happen on laptop screen (when we see around 35 rows in visible area) but only on 5k imacs. I changed below value from 100 to 150 and everyting is working fine during scroll, where can be the issue ? Error

bilencekic avatar Oct 31 '19 13:10 bilencekic

Are you using fullscreen or tableOverflow?

pphod avatar Oct 31 '19 14:10 pphod

as above; (height is %87 due to some additional scrollbar issue for my page)

                                 data: line.rows,
				tableHeight: '87%',
				tableWidth: '100%',
				search: true,
				csvHeaders: false,
				tableOverflow: true,
				lazyLoading: true,
				loadingSpin: true,
				allowInsertRow: false,
				allowInsertColumn: false,
				allowDeleteRow: false,
				allowDeleteColumn: false,
				wordWrap: false,

bilencekic avatar Oct 31 '19 14:10 bilencekic

Any updates on this issue?

I've same problem on 2K monitor, using this options:

tableWidth: '100%',
tableHeight: '100%',
tableOverflow: true,
lazyLoading: true,
loadingSpin: true,
columnSorting: false,
columnResize: false,

Looks like loadDown() and loadUp() methods are called in cycle from obj.wheelControls(), because of this condition else if (obj.content.scrollTop <= obj.content.clientHeight).

When 30 rows are added to the end of the table, and 30 rows are deleted from start, obj.content.scrollTop became smaller than obj.content.clientHeight and so loadUp() gets called.

And this cause endless adding and removing of rows and scroll blinking.

AndrusovaK avatar Jun 05 '20 13:06 AndrusovaK