Update language Editor (still not functional)
This commit is contained in:
parent
aa930f097a
commit
8eb054f9d2
|
@ -108,9 +108,8 @@ onCallbackError(error: any) {
|
||||||
}
|
}
|
||||||
|
|
||||||
refreshFn = (ev: Event) => {
|
refreshFn = (ev: Event) => {
|
||||||
|
if (document.scrollingElement !== undefined) {
|
||||||
if ((ev.srcElement as HTMLDocument).scrollingElement !== undefined) {
|
this.startIndex = Math.floor(document.scrollingElement.scrollTop / this.rowHeight);
|
||||||
this.startIndex = Math.floor((ev.srcElement as HTMLDocument).scrollingElement.scrollTop / this.rowHeight);
|
|
||||||
this.endIndex = this.startIndex + this.maxElements;
|
this.endIndex = this.startIndex + this.maxElements;
|
||||||
const tempKeys = this.keys.slice(this.startIndex, this.endIndex);
|
const tempKeys = this.keys.slice(this.startIndex, this.endIndex);
|
||||||
this.visibleKeys.length = 0;
|
this.visibleKeys.length = 0;
|
||||||
|
|
Loading…
Reference in New Issue