Browse Source

This patch applies Jordan Naftolin's fix for extra space being added to the bottom of tables. It also fixes the border.fo so the year is "2000" rather than "20000". Heh.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193348 13f79535-47bb-0310-9956-ffa450edef68
tags/pre-columns
Steve Coffman 24 years ago
parent
commit
ea778ff1f7

+ 1
- 1
docs/examples/fo/border.fo View 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">

+ 5
- 0
src/org/apache/fop/fo/flow/TableBody.java View 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();

+ 5
- 1
src/org/apache/fop/fo/flow/TableRow.java View 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;
}
}

Loading…
Cancel
Save