We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8a8a28 + c5c1a70 commit d9c7d90Copy full SHA for d9c7d90
src/ResizePlugin.ts
@@ -213,10 +213,9 @@ class ResizePlugin {
213
) {
214
height = this.options.resizeConstraints.maxHeight;
215
}
216
- this.resizeTarget.setAttribute("width", width + "px");
217
-
+ this.resizeTarget.setAttribute("width", `${width}`);
218
if (!this.options?.keepAspectRatio) {
219
- this.resizeTarget.setAttribute("height", height + "px");
+ this.resizeTarget.setAttribute("height", `${height}`);
220
221
this.positionResizerToTarget(this.resizeTarget);
222
0 commit comments