From fa9e78ed2ccd890c4eb21f319ea56f9e0545125b Mon Sep 17 00:00:00 2001 From: Simon Steiner Date: Tue, 21 Nov 2023 14:15:54 +0000 Subject: [PATCH] FOP-3161: Resize table only for multicolumn page --- .../layoutmgr/table/TableLayoutManager.java | 2 +- .../flow_changing-ipd_table2.xml | 80 +++++++++++++++++++ 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 fop/test/layoutengine/standard-testcases/flow_changing-ipd_table2.xml 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 + + + + + + + + + + + + + + + + + + + + + + + + +
-- 2.39.5