From ad195e0f0572ab8c2ce9123b73e605e0aae235d1 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Thu, 8 Jul 2021 20:28:49 +0200 Subject: [PATCH] XFA - Scale correctly images --- src/core/xfa/template.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/xfa/template.js b/src/core/xfa/template.js index 093d7eb1a..cb87086fd 100644 --- a/src/core/xfa/template.js +++ b/src/core/xfa/template.js @@ -3045,20 +3045,21 @@ class Image extends StringObject { break; case "height": style = { - width: "auto", height: "100%", + objectFit: "fill", }; break; case "none": style = { width: "100%", height: "100%", + objectFit: "fill", }; break; case "width": style = { width: "100%", - height: "auto", + objectFit: "fill", }; break; }