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.
.attr
1 parent 3ccda41 commit d0d7b4bCopy full SHA for d0d7b4b
web_src/js/features/imagediff.js
@@ -98,8 +98,10 @@ export function initImageDiff() {
98
const text = await resp.text();
99
const bounds = getDefaultSvgBoundsIfUndefined(text, info.path);
100
if (bounds) {
101
- info.$images.attr('width', bounds.width);
102
- info.$images.attr('height', bounds.height);
+ info.$images.each(function() {
+ this.setAttribute('width', bounds.width);
103
+ this.setAttribute('height', bounds.height);
104
+ });
105
hideElem(info.$boundsInfo);
106
}
107
0 commit comments