File tree 2 files changed +5
-5
lines changed
layout/src/main/java/com/itextpdf/layout/renderer 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2182,7 +2182,7 @@ public MinMaxWidth getMinMaxWidth() {
2182
2182
* @return instance of {@link MinMaxWidth}
2183
2183
*/
2184
2184
public MinMaxWidth getMinMaxWidth (Float areaMaxWidth ) {
2185
- return areaMaxWidth == null ? getMinMaxWidth () : MinMaxWidthUtils .countDefaultMinMaxWidth (this , areaMaxWidth );
2185
+ return areaMaxWidth == null ? getMinMaxWidth () : MinMaxWidthUtils .countDefaultMinMaxWidth (this , areaMaxWidth . floatValue () );
2186
2186
}
2187
2187
2188
2188
protected boolean setMinMaxWidthBasedOnFixedWidth (MinMaxWidth minMaxWidth ) {
Original file line number Diff line number Diff line change @@ -1092,13 +1092,13 @@ public MinMaxWidth getMinMaxWidth(Float parentBoxWidth) {
1092
1092
minWidth = hasAbsoluteUnitValue (Property .MIN_WIDTH ) ? retrieveMinWidth (0 ) : null ;
1093
1093
maxWidth = hasAbsoluteUnitValue (Property .MAX_WIDTH ) ? retrieveMaxWidth (0 ) : null ;
1094
1094
} else {
1095
- minWidth = retrieveMinWidth (parentBoxWidth );
1095
+ minWidth = retrieveMinWidth (parentBoxWidth . floatValue () );
1096
1096
if (minWidth == null ) {
1097
- minWidth = retrieveUnitValue (parentBoxWidth , Property .WIDTH );
1097
+ minWidth = retrieveUnitValue (parentBoxWidth . floatValue () , Property .WIDTH );
1098
1098
}
1099
- maxWidth = retrieveMaxWidth (parentBoxWidth );
1099
+ maxWidth = retrieveMaxWidth (parentBoxWidth . floatValue () );
1100
1100
if (maxWidth == null ) {
1101
- maxWidth = retrieveUnitValue (parentBoxWidth , Property .WIDTH );
1101
+ maxWidth = retrieveUnitValue (parentBoxWidth . floatValue () , Property .WIDTH );
1102
1102
}
1103
1103
}
1104
1104
if (minWidth == null || maxWidth == null ) {
You can’t perform that action at this time.
0 commit comments