MediaWiki:Common.js: Difference between revisions
Content added Content deleted
Piranhaplant (talk | contribs) No edit summary |
Piranhaplant (talk | contribs) No edit summary |
||
Line 67: | Line 67: | ||
var bbox = clone.getBBox(); |
var bbox = clone.getBBox(); |
||
clone.setAttribute("width", |
clone.setAttribute("width", bbox.width + "px"); |
||
clone.setAttribute("height", |
clone.setAttribute("height", bbox.height + "px"); |
||
clone.setAttribute("viewBox", |
clone.setAttribute("viewBox", bbox.x + " " + bbox.y + " " + bbox.width + " " + bbox.height); |
||
} |
} |
||
return true; |
return true; |