From 68ed5be9ac0b47e719db947d7ed6af47868736d5 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 5 Oct 2025 13:47:47 +0200 Subject: [PATCH] [Editor] Remove obsolete arguments for `setDims` calls in the highlight code The `width` and `height` arguments for `setDims` have been removed in PR #20285, but for two calls in the highlight code they remained. This commit removes them as they are no longer used in the method itself. Fixes 0722faa9. --- src/display/editor/highlight.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/display/editor/highlight.js b/src/display/editor/highlight.js index d40aff479..e0bdeefd5 100644 --- a/src/display/editor/highlight.js +++ b/src/display/editor/highlight.js @@ -527,7 +527,7 @@ class HighlightEditor extends AnnotationEditor { highlightOutlines: this.#highlightOutlines.getNewOutline(thickness / 2), }); this.fixAndSetPosition(); - this.setDims(this.width, this.height); + this.setDims(); } #cleanDrawLayer() { @@ -646,7 +646,7 @@ class HighlightEditor extends AnnotationEditor { highlightDiv.setAttribute("aria-hidden", "true"); highlightDiv.className = "internal"; highlightDiv.style.clipPath = this.#clipPathId; - this.setDims(this.width, this.height); + this.setDims(); bindEvents(this, this.#highlightDiv, ["pointerover", "pointerleave"]); this.enableEditing();