MediaWiki:Common.js: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 67: Line 67:
var bbox = clone.getBBox();
var bbox = clone.getBBox();
clone.setAttribute("width", `${bbox.width}px`);
clone.setAttribute("width", bbox.width + "px");
clone.setAttribute("height", `${bbox.height}px`);
clone.setAttribute("height", bbox.height + "px");
clone.setAttribute("viewBox", `${bbox.x} ${bbox.y} ${bbox.width} ${bbox.height}`);
clone.setAttribute("viewBox", bbox.x + " " + bbox.y + " " + bbox.width + " " + bbox.height);
}
}
return true;
return true;