]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix spanning bug; use height property
authorKaren Lease <klease@apache.org>
Wed, 11 Jul 2001 21:27:36 +0000 (21:27 +0000)
committerKaren Lease <klease@apache.org>
Wed, 11 Jul 2001 21:27:36 +0000 (21:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194347 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/flow/TableRow.java

index 4a885b56be623e59b8d25c30af766122b1c9b8cc..455f6996b96f33225af6ec822d384eec610609df 100644 (file)
@@ -43,7 +43,7 @@ public class TableRow extends FObj {
 
     int widthOfCellsSoFar = 0;
     int largestCellHeight = 0;
-
+    int minHeight = 0; // force row height
     Vector columns;
 
     AreaContainer areaContainer;
@@ -81,8 +81,8 @@ public class TableRow extends FObj {
         * Otherwise return value >= input value.
         */
         int getNextFreeCell(int colNum) {
-            for (int i=colNum-1; i<cells.length; i++) {
-                if (cells[i] == null) return i+1;
+            for (int i=colNum-1; i<states.length; i++) {
+                if (states[i] == EMPTY) return i+1;
             }
             return -1;
         }
@@ -194,6 +194,7 @@ public class TableRow extends FObj {
        this.keepWithPrevious = getKeepValue("keep-with-previous.within-column");
 
        this.id = this.properties.get("id").getString();
+       this.minHeight = this.properties.get("height").getLength().mvalue();
        setup = true;
     }
 
@@ -264,7 +265,7 @@ public class TableRow extends FObj {
        areaContainer.setAbsoluteHeight(area.getAbsoluteHeight());
        areaContainer.setIDReferences(area.getIDReferences());
 
-       largestCellHeight = 0;
+       largestCellHeight = minHeight;
 
        // Flag indicaing whether any cell didn't fit in available space
        boolean someCellDidNotLayoutCompletely = false;