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.
1 parent 1a9f535 commit 2813aaaCopy full SHA for 2813aaa
1 file changed
src/core/clone.js
@@ -45,8 +45,8 @@ export function deepClone(node, styleMap, styleCache, nodeMap, compress) {
45
img.width = node.width;
46
img.height = node.height;
47
img.style.display = "inline-block";
48
- img.style.width = `${node.width}px`;
49
- img.style.height = `${node.height}px`;
+ img.style.width = node.style.width || `${node.width}px`;
+ img.style.height = node.style.height || `${node.height}px`;
50
return img;
51
}
52
if (node.nodeType === Node.TEXT_NODE) {
0 commit comments