diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts index 2d7fce99d..79ceba2f8 100644 --- a/app/src/layout/dock/Outline.ts +++ b/app/src/layout/dock/Outline.ts @@ -226,8 +226,8 @@ export class Outline extends Model { } if (currentElement) { currentElement.classList.add("b3-list-item--focus"); - const currentRect = currentElement.getBoundingClientRect() - const scrollRect = this.element.getBoundingClientRect() + const currentRect = currentElement.getBoundingClientRect(); + const scrollRect = this.element.getBoundingClientRect(); if (currentRect.top < scrollRect.top) { currentElement.scrollIntoView(); } else if (currentRect.bottom > scrollRect.bottom) {