fix column position shifting when switching column
This commit is contained in:
parent
7dab421c26
commit
51709508f0
|
@ -261,7 +261,7 @@ export class StreamNotificationsComponent implements OnInit, OnDestroy {
|
|||
} else {
|
||||
element = this.notificationstream.nativeElement as HTMLElement;
|
||||
}
|
||||
element.focus();
|
||||
element.focus({preventScroll:true});
|
||||
}, 0);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -306,7 +306,7 @@ export class StreamStatusesComponent implements OnInit, OnDestroy {
|
|||
focus(): boolean {
|
||||
setTimeout(() => {
|
||||
var element = this.statustream.nativeElement as HTMLElement;
|
||||
element.focus();
|
||||
element.focus({preventScroll:true});
|
||||
}, 0);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -37,9 +37,9 @@ export class StreamsMainDisplayComponent implements OnInit, OnDestroy {
|
|||
if (columnIndex > -1) {
|
||||
setTimeout(() => {
|
||||
let element = this.streamsElementRef.toArray()[columnIndex].nativeElement;
|
||||
element.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' });
|
||||
//element.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' });
|
||||
|
||||
const scrolling = <Promise<any>><any>scrollIntoView(element, { behavior: 'smooth', block: 'nearest'});
|
||||
const scrolling = <Promise<any>><any>scrollIntoView(element, { behavior: 'smooth', block: 'nearest', inline: 'start'});
|
||||
scrolling
|
||||
.then(() => {
|
||||
this.streamComponents.toArray()[columnIndex].focus();
|
||||
|
|
Loading…
Reference in New Issue