]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
This patch applies Jordan Naftolin's fix for extra space being added to the bottom...
authorSteve Coffman <gears@apache.org>
Tue, 16 May 2000 19:53:11 +0000 (19:53 +0000)
committerSteve Coffman <gears@apache.org>
Tue, 16 May 2000 19:53:11 +0000 (19:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193348 13f79535-47bb-0310-9956-ffa450edef68

docs/examples/fo/border.fo
src/org/apache/fop/fo/flow/TableBody.java
src/org/apache/fop/fo/flow/TableRow.java

index 919f291b48e6f3a73a9ecfbb77e54b4777674139..ac1b3415d20496c16cb378f81e4f21ddc4ee9b3a 100644 (file)
@@ -41,7 +41,7 @@
             </fo:block-container>
             <fo:block-container border-color="black" border-style="solid" border-width="1pt" height="0.5cm" width="2.5cm" top="1.7cm" left="14cm" padding="2pt" position="absolute">
                 <fo:block text-align="start" space-after.optimum="3pt" line-height="15pt" font-family="sans-serif" font-size="10pt">
-                                       01/01/20000
+                                       01/01/2000
                                </fo:block>
             </fo:block-container>
             <fo:block-container border-color="black" border-style="solid" border-width="1pt" height="0.5cm" width="2.5cm" top="1.2cm" left="16.5cm" padding="2pt" position="absolute">
index 440a53b4a3bc328ca27487f80eccc0cc43398c9d..494f59718eb111afd5774e5b59923ee78bc893aa 100644 (file)
@@ -156,6 +156,11 @@ public class TableBody extends FObj {
                area.increaseHeight(areaContainer.getHeight());
                return status;
            }
+               // if this is not the last row, add display space
+               if(i!=numChildren-1)
+               {
+                       areaContainer.addDisplaySpace(row.getLargestCellHeight());
+               }
        }
        area.addChild(areaContainer);
        areaContainer.end();
index 5fd80a5adb915f1213f86a11cd5e4653c1c835cd..79c37bf695656ff0a116dc8bc8ab425f038b50a6 100644 (file)
@@ -202,7 +202,7 @@ public class TableRow extends FObj {
        area.addChild(areaContainer);
        areaContainer.end();
         area.setHeight(largestCellHeight);
-       area.addDisplaySpace(largestCellHeight);
+
        // bug fix from Eric Schaeffer
        //area.increaseHeight(largestCellHeight);
 
@@ -220,4 +220,8 @@ public class TableRow extends FObj {
     public int getAreaHeight() {
        return areaContainer.getHeight();
     }
+       public int getLargestCellHeight()
+       {
+               return largestCellHeight;
+       }
 }