From b39477d81acb67a0a061a9586a2db59706afb732 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Mon, 21 Mar 2022 16:45:48 -0700 Subject: [PATCH] Fix full decorations --- src/browser/Decorations/OverviewRulerRenderer.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/browser/Decorations/OverviewRulerRenderer.ts b/src/browser/Decorations/OverviewRulerRenderer.ts index b15d0d01..9cdf99ca 100644 --- a/src/browser/Decorations/OverviewRulerRenderer.ts +++ b/src/browser/Decorations/OverviewRulerRenderer.ts @@ -143,10 +143,12 @@ export class OverviewRulerRenderer extends Disposable { } this._ctx.clearRect(0, 0, this._canvas.width, this._canvas.height); for (const decoration of this._decorationService.decorations) { - if (!decoration.options.overviewRulerOptions?.position) { - continue; + if (decoration.options.overviewRulerOptions && decoration.options.overviewRulerOptions.position !== 'full') { + this._renderDecoration(decoration, updateAnchor); } - if (decoration.options.overviewRulerOptions.position !== 'full') { + } + for (const decoration of this._decorationService.decorations) { + if (decoration.options.overviewRulerOptions && decoration.options.overviewRulerOptions.position === 'full') { this._renderDecoration(decoration, updateAnchor); } }