From a9253184af5a1b60ba93c9b1ee73bd6d023059fc Mon Sep 17 00:00:00 2001 From: Art Welch Date: Wed, 25 Apr 2001 21:59:00 +0000 Subject: [PATCH] Each column in the row should start with the same height available. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194224 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/flow/TableRow.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/org/apache/fop/fo/flow/TableRow.java b/src/org/apache/fop/fo/flow/TableRow.java index a95c92a3f..1e1dcc4d9 100644 --- a/src/org/apache/fop/fo/flow/TableRow.java +++ b/src/org/apache/fop/fo/flow/TableRow.java @@ -326,6 +326,7 @@ public class TableRow extends FObj { } int spaceLeft = area.spaceLeft(); + int origMaxHeight = area.getMaxHeight(); this.areaContainer = new AreaContainer(propMgr.getFontState(area.getFontInfo()), 0,0, @@ -419,6 +420,13 @@ public class TableRow extends FObj { //--- change by Hani Elabed 11/22/2000 cell.setStartOffset(cellState.getWidthOfCellSoFar()); + // Each column in the row should start with the same height available + if ( i > 0 ) + { + areaContainer.increaseHeight(areaContainer.spaceLeft() - areaContainer.getMaxHeight() - spaceLeft + origMaxHeight); + areaContainer.setMaxHeight(spaceLeft); + } + Status status; if ((status = cell.layout(areaContainer)).isIncomplete()) { this.marker = i; -- 2.39.5