RED-3800: Fixed scroll to annotation
This commit is contained in:
parent
c86af4e491
commit
6ac80d3fb4
@ -98,7 +98,7 @@ export class AnnotationsListComponent extends HasScrollbarDirective implements O
|
||||
} else if (first.y < second.y) {
|
||||
return 1;
|
||||
} else {
|
||||
return first.x < second.y ? -1 : 1;
|
||||
return first.x < second.x ? -1 : 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -234,7 +234,7 @@ export class FileWorkloadComponent {
|
||||
return;
|
||||
}
|
||||
const elements: HTMLElement[] = this._annotationsElement.nativeElement.querySelectorAll(
|
||||
`[annotation-id="${this._firstSelectedAnnotation?.id}"].active`,
|
||||
`[annotation-id="${this._firstSelectedAnnotation?.id}"]`,
|
||||
);
|
||||
FileWorkloadComponent._scrollToFirstElement(elements);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user