Merge pull request #13700 from calixteman/image_scale

XFA - Scale correctly images
This commit is contained in:
calixteman 2021-07-09 15:34:47 +02:00 committed by GitHub
commit 0afc785c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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