Merge pull request #20335 from timvandermeij/setDims

[Editor] Remove obsolete arguments for `setDims` calls in the highlight code
This commit is contained in:
calixteman 2025-10-05 19:43:07 +02:00 committed by GitHub
commit 7f92a6e2be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();