1
0
mirror of https://github.com/NicolasConstant/sengi synced 2025-02-01 19:16:52 +01:00

fix column moving on focus

This commit is contained in:
Nicolas Constant 2019-08-14 21:54:34 -04:00
parent 2b6ad187ac
commit 1ea39621ad
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688

View File

@ -173,7 +173,9 @@ export class ThreadComponent implements OnInit, OnDestroy {
const el = this.statusChildren.toArray()[position];
el.isSelected = true;
// el.elem.nativeElement.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' });
el.elem.nativeElement.scrollIntoView({ behavior: 'auto', block: 'start', inline: 'nearest' });
// el.elem.nativeElement.scrollIntoView({ behavior: 'auto', block: 'start', inline: 'nearest' });
// el.elem.nativeElement.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' });
el.elem.nativeElement.scrollIntoViewIfNeeded({ behavior: 'auto', block: 'start', inline: 'nearest' });
}, 0);
})
.catch((err: HttpErrorResponse) => {