Skip to content

Commit d9c7d90

Browse files
authored
Merge pull request #27 from Ivaneyko/master
2 parents e8a8a28 + c5c1a70 commit d9c7d90

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ResizePlugin.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,9 @@ class ResizePlugin {
213213
) {
214214
height = this.options.resizeConstraints.maxHeight;
215215
}
216-
this.resizeTarget.setAttribute("width", width + "px");
217-
216+
this.resizeTarget.setAttribute("width", `${width}`);
218217
if (!this.options?.keepAspectRatio) {
219-
this.resizeTarget.setAttribute("height", height + "px");
218+
this.resizeTarget.setAttribute("height", `${height}`);
220219
}
221220
this.positionResizerToTarget(this.resizeTarget);
222221
}

0 commit comments

Comments
 (0)