aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArt Welch <artw@apache.org>2001-04-25 21:59:00 +0000
committerArt Welch <artw@apache.org>2001-04-25 21:59:00 +0000
commita9253184af5a1b60ba93c9b1ee73bd6d023059fc (patch)
tree284613ac1d6d64dc28bfd5cdfd9a0c924dbecc74 /src
parentb53332f09149e17c49ba328046a13e4c67b54f9b (diff)
downloadxmlgraphics-fop-a9253184af5a1b60ba93c9b1ee73bd6d023059fc.tar.gz
xmlgraphics-fop-a9253184af5a1b60ba93c9b1ee73bd6d023059fc.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/fo/flow/TableRow.java8
1 files changed, 8 insertions, 0 deletions
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;