Skip to content

Commit

Permalink
Merge pull request #624 from biigle/patch-1
Browse files Browse the repository at this point in the history
Fix regression with annotation focussing
  • Loading branch information
mzur authored Jul 12, 2023
2 parents e414e14 + d8e515c commit 7a4e62b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/assets/js/annotations/annotatorContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,11 @@ export default {
let annotations = this.annotations;
for (let i = annotations.length - 1; i >= 0; i--) {
if (annotations[i].id === id) {
this.selectAndFocusAnnotation(annotations[i]);
// Use $nextTick so the annotationCanvas component has time to
// render the image.
this.$nextTick(
() => this.selectAndFocusAnnotation(annotations[i])
);
return;
}
}
Expand Down

0 comments on commit 7a4e62b

Please sign in to comment.