From 577ed107ddb7c054c0d55e5c5e2027d015116ee0 Mon Sep 17 00:00:00 2001 From: Viktor Suprun Date: Thu, 26 Feb 2026 01:54:02 +1100 Subject: [PATCH] Fix SVG height calculation in diff viewer (#36748) Fixes #36742 --- web_src/js/features/imagediff.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/imagediff.ts b/web_src/js/features/imagediff.ts index 23f05fbdc7..1e89aa8b6e 100644 --- a/web_src/js/features/imagediff.ts +++ b/web_src/js/features/imagediff.ts @@ -53,7 +53,7 @@ function getDefaultSvgBoundsIfUndefined(text: string, src: string): Bounds | nul const viewBox = svg.viewBox.baseVal; return { width: defaultSize, - height: defaultSize * viewBox.width / viewBox.height, + height: defaultSize * viewBox.height / viewBox.width, }; } return {