XFA - Scale correctly images
This commit is contained in:
parent
c33bf0b5e8
commit
ad195e0f05
@ -3045,20 +3045,21 @@ class Image extends StringObject {
|
|||||||
break;
|
break;
|
||||||
case "height":
|
case "height":
|
||||||
style = {
|
style = {
|
||||||
width: "auto",
|
|
||||||
height: "100%",
|
height: "100%",
|
||||||
|
objectFit: "fill",
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case "none":
|
case "none":
|
||||||
style = {
|
style = {
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: "100%",
|
height: "100%",
|
||||||
|
objectFit: "fill",
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case "width":
|
case "width":
|
||||||
style = {
|
style = {
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: "auto",
|
objectFit: "fill",
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user