From: Art Welch Date: Wed, 25 Apr 2001 21:59:00 +0000 (+0000) Subject: Each column in the row should start with the same height available. X-Git-Tag: PRE_CODEFORMATTING~153 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a9253184af5a1b60ba93c9b1ee73bd6d023059fc;p=xmlgraphics-fop.git 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 --- 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;