aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaren Lease <klease@apache.org>2001-04-20 21:00:31 +0000
committerKaren Lease <klease@apache.org>2001-04-20 21:00:31 +0000
commitaae6e22943d7745a6e82f7c6b9f6a23e9de5ff6c (patch)
treec797ac294dabb5ae7876633983d7cd2b781eeec8
parent89a0d0b1b84d9e103062990652adfa7ba467ee6a (diff)
downloadxmlgraphics-fop-aae6e22943d7745a6e82f7c6b9f6a23e9de5ff6c.tar.gz
xmlgraphics-fop-aae6e22943d7745a6e82f7c6b9f6a23e9de5ff6c.zip
Fix body positioning; remove widow and orhpan handling for rows
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194219 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/org/apache/fop/fo/flow/TableBody.java60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/org/apache/fop/fo/flow/TableBody.java b/src/org/apache/fop/fo/flow/TableBody.java
index edb774fbe..408be1e56 100644
--- a/src/org/apache/fop/fo/flow/TableBody.java
+++ b/src/org/apache/fop/fo/flow/TableBody.java
@@ -153,7 +153,7 @@ public class TableBody extends FObj {
*/
this.areaContainer =
new AreaContainer(propMgr.getFontState(area.getFontInfo()),
- 0,area.getHeight(),
+ 0,area.getContentHeight(),
area.getContentWidth(), // IPD
area.spaceLeft(),
Position.RELATIVE);
@@ -220,38 +220,38 @@ public class TableBody extends FObj {
}
}
this.marker = i;
- if ((i != 0) &&
+ if ((i != 0) &&
(status.getCode() == Status.AREA_FULL_NONE)) {
status = new Status(Status.AREA_FULL_SOME);
}
- if (i < widows && numChildren >= widows) {
- resetMarker();
- return new Status(Status.AREA_FULL_NONE);
- }
- if (numChildren <= orphans) {
- resetMarker();
- return new Status(Status.AREA_FULL_NONE);
- }
- if (numChildren - i < orphans && numChildren >= orphans) {
- for (int count = i;
- count > numChildren - orphans - 1; count--) {
- row = (TableRow) children.elementAt(count);
- row.removeLayout(areaContainer);
- i--;
- }
- if (i < widows && numChildren >= widows) {
- resetMarker();
- return new Status(Status.AREA_FULL_NONE);
- }
- this.marker = i;
- area.addChild(areaContainer);
- //areaContainer.end();
-
- area.increaseHeight(areaContainer.getHeight());
- area.setAbsoluteHeight(
- areaContainer.getAbsoluteHeight());
- return new Status(Status.AREA_FULL_SOME);
- }
+// if (i < widows && numChildren >= widows) {
+// resetMarker();
+// return new Status(Status.AREA_FULL_NONE);
+// }
+// if (numChildren <= orphans) {
+// resetMarker();
+// return new Status(Status.AREA_FULL_NONE);
+// }
+// if (numChildren - i < orphans && numChildren >= orphans) {
+// for (int count = i;
+// count > numChildren - orphans - 1; count--) {
+// row = (TableRow) children.elementAt(count);
+// row.removeLayout(areaContainer);
+// i--;
+// }
+// if (i < widows && numChildren >= widows) {
+// resetMarker();
+// return new Status(Status.AREA_FULL_NONE);
+// }
+// this.marker = i;
+// area.addChild(areaContainer);
+// //areaContainer.end();
+
+// area.increaseHeight(areaContainer.getHeight());
+// area.setAbsoluteHeight(
+// areaContainer.getAbsoluteHeight());
+// return new Status(Status.AREA_FULL_SOME);
+// }
if (!((i == 0) &&
(areaContainer.getContentHeight() <= 0))) {
area.addChild(areaContainer);