[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.
This commit is contained in:
parent
f56dc86014
commit
68ed5be9ac
@ -527,7 +527,7 @@ class HighlightEditor extends AnnotationEditor {
|
|||||||
highlightOutlines: this.#highlightOutlines.getNewOutline(thickness / 2),
|
highlightOutlines: this.#highlightOutlines.getNewOutline(thickness / 2),
|
||||||
});
|
});
|
||||||
this.fixAndSetPosition();
|
this.fixAndSetPosition();
|
||||||
this.setDims(this.width, this.height);
|
this.setDims();
|
||||||
}
|
}
|
||||||
|
|
||||||
#cleanDrawLayer() {
|
#cleanDrawLayer() {
|
||||||
@ -646,7 +646,7 @@ class HighlightEditor extends AnnotationEditor {
|
|||||||
highlightDiv.setAttribute("aria-hidden", "true");
|
highlightDiv.setAttribute("aria-hidden", "true");
|
||||||
highlightDiv.className = "internal";
|
highlightDiv.className = "internal";
|
||||||
highlightDiv.style.clipPath = this.#clipPathId;
|
highlightDiv.style.clipPath = this.#clipPathId;
|
||||||
this.setDims(this.width, this.height);
|
this.setDims();
|
||||||
|
|
||||||
bindEvents(this, this.#highlightDiv, ["pointerover", "pointerleave"]);
|
bindEvents(this, this.#highlightDiv, ["pointerover", "pointerleave"]);
|
||||||
this.enableEditing();
|
this.enableEditing();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user