|
|
@@ -181,7 +181,7 @@ this.imagesMinifier = this.imagesMinifier || (() => {
|
|
|
svgElement.appendChild(titleElement);
|
|
|
}
|
|
|
svgElement.setAttribute(SINGLE_FILE_IMAGE_ATTRIBUTE, "");
|
|
|
- const style = svgElement.getAttribute("style") || "";
|
|
|
+ const style = imgElement.getAttribute("style") || "";
|
|
|
svgElement.setAttribute("style", style + (style && ";") + "box-sizing:content-box!important;width:" + imageData.clientWidth + "px!important;" + "height:" + imageData.clientHeight + "px!important");
|
|
|
svgElement.setAttributeNS(SVG_NS, "viewBox", "0 0 " + width + " " + height);
|
|
|
svgElement.setAttributeNS(SVG_NS, "width", imageData.clientWidth);
|