1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

XFA - Scale correctly images

This commit is contained in:
Calixte Denizet 2021-07-08 20:28:49 +02:00
parent c33bf0b5e8
commit ad195e0f05

View file

@ -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;
}