From: Simon Steiner Date: Tue, 21 Nov 2023 14:15:54 +0000 (+0000) Subject: FOP-3161: Resize table only for multicolumn page X-Git-Tag: 2_10~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa9e78ed2ccd890c4eb21f319ea56f9e0545125b;p=xmlgraphics-fop.git FOP-3161: Resize table only for multicolumn page --- diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java index f1750b226..182f3e8f7 100644 --- a/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java +++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java @@ -318,7 +318,7 @@ public class TableLayoutManager extends SpacedBorderedPaddedBlockLayoutManager } private boolean supportResize(FONode node) { - if (node instanceof AbstractGraphics || contentLM.bodyIter.rowIndex == 1) { + if (node instanceof AbstractGraphics || getPSLM().getPageProvider().getCurrentColumnCount() == 1) { return false; } FONode.FONodeIterator iterator = node.getChildNodes(); diff --git a/fop/test/layoutengine/standard-testcases/flow_changing-ipd_table2.xml b/fop/test/layoutengine/standard-testcases/flow_changing-ipd_table2.xml new file mode 100644 index 000000000..55c18a346 --- /dev/null +++ b/fop/test/layoutengine/standard-testcases/flow_changing-ipd_table2.xml @@ -0,0 +1,80 @@ + + + + + +

+ This test checks that a table immediately following a changing IPD break is handled properly. +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Table 2 + + + + + + + + + + + + + + + + + + + + + + + + +