Browse Source

Autoport fixes

DEVSIX-8985

Autoported commit.
Original commit hash: [eb025ca17]
pull/38/head
Dmitry Radchuk 3 months ago
committed by Dmitry Chubrick
parent
commit
085f99a5a8
  1. 2
      itext/itext.layout/itext/layout/renderer/AbstractRenderer.cs
  2. 8
      itext/itext.layout/itext/layout/renderer/BlockRenderer.cs
  3. 2
      port-hash

2
itext/itext.layout/itext/layout/renderer/AbstractRenderer.cs

@ -2169,7 +2169,7 @@ namespace iText.Layout.Renderer {
/// </returns>
public virtual MinMaxWidth GetMinMaxWidth(float? areaMaxWidth) {
return areaMaxWidth == null ? GetMinMaxWidth() : MinMaxWidthUtils.CountDefaultMinMaxWidth(this, areaMaxWidth
);
.Value);
}
protected internal virtual bool SetMinMaxWidthBasedOnFixedWidth(MinMaxWidth minMaxWidth) {

8
itext/itext.layout/itext/layout/renderer/BlockRenderer.cs

@ -1046,13 +1046,13 @@ namespace iText.Layout.Renderer {
maxWidth = HasAbsoluteUnitValue(Property.MAX_WIDTH) ? RetrieveMaxWidth(0) : null;
}
else {
minWidth = RetrieveMinWidth(parentBoxWidth);
minWidth = RetrieveMinWidth(parentBoxWidth.Value);
if (minWidth == null) {
minWidth = RetrieveUnitValue(parentBoxWidth, Property.WIDTH);
minWidth = RetrieveUnitValue(parentBoxWidth.Value, Property.WIDTH);
}
maxWidth = RetrieveMaxWidth(parentBoxWidth);
maxWidth = RetrieveMaxWidth(parentBoxWidth.Value);
if (maxWidth == null) {
maxWidth = RetrieveUnitValue(parentBoxWidth, Property.WIDTH);
maxWidth = RetrieveUnitValue(parentBoxWidth.Value, Property.WIDTH);
}
}
if (minWidth == null || maxWidth == null) {

2
port-hash

@ -1 +1 @@
6e0c3680010e290904d980d8eca37266aeadabd4
eb025ca1789eeae00a490da063301d845282f183
Loading…
Cancel
Save