Skip to content

Commit 6bfec14

Browse files
committed
Fix autoport issue
DEVSIX-1389
1 parent a77f4b0 commit 6bfec14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

layout/src/main/java/com/itextpdf/layout/renderer/RotationUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ public static Float retrieveRotatedLayoutWidth(float availableWidth, AbstractRen
125125
if (rotation != null && renderer.<UnitValue>getProperty(Property.WIDTH) == null) {
126126
float angle = (float) rotation;
127127

128-
backup.storeProperty(Property.HEIGHT);
129-
backup.storeProperty(Property.MIN_HEIGHT);
130-
backup.storeProperty(Property.MAX_HEIGHT);
128+
backup.<UnitValue>storeProperty(Property.HEIGHT);
129+
backup.<UnitValue>storeProperty(Property.MIN_HEIGHT);
130+
backup.<UnitValue>storeProperty(Property.MAX_HEIGHT);
131131
MinMaxWidth minMaxWidth = renderer.getMinMaxWidth(MinMaxWidthUtils.getMax());
132132
//Using this width for initial layout helps in case of small elements. They may have more free spaces but it's more likely they fit.
133133
float length = (minMaxWidth.getMaxWidth() + minMaxWidth.getMinWidth()) / 2 + MinMaxWidthUtils.getEps();

0 commit comments

Comments
 (0)