Skip to content

Commit 68ed5be

Browse files
committed
[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 0722faa.
1 parent f56dc86 commit 68ed5be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/display/editor/highlight.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ class HighlightEditor extends AnnotationEditor {
527527
highlightOutlines: this.#highlightOutlines.getNewOutline(thickness / 2),
528528
});
529529
this.fixAndSetPosition();
530-
this.setDims(this.width, this.height);
530+
this.setDims();
531531
}
532532

533533
#cleanDrawLayer() {
@@ -646,7 +646,7 @@ class HighlightEditor extends AnnotationEditor {
646646
highlightDiv.setAttribute("aria-hidden", "true");
647647
highlightDiv.className = "internal";
648648
highlightDiv.style.clipPath = this.#clipPathId;
649-
this.setDims(this.width, this.height);
649+
this.setDims();
650650

651651
bindEvents(this, this.#highlightDiv, ["pointerover", "pointerleave"]);
652652
this.enableEditing();

0 commit comments

Comments
 (0)