aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--STATUS1
-rw-r--r--src/org/apache/fop/fo/flow/ListBlock.java6
2 files changed, 7 insertions, 0 deletions
diff --git a/STATUS b/STATUS
index 1304f4502..c69077aed 100644
--- a/STATUS
+++ b/STATUS
@@ -37,6 +37,7 @@ basic support for padding-{top,left,bottom,right} on blocks.
implemented simple-link (don't think it works, though)
XTCommandLine now works again
background color works on list-block
+list-blocks can now be in table-cell
Done for 0.12.0 release:
diff --git a/src/org/apache/fop/fo/flow/ListBlock.java b/src/org/apache/fop/fo/flow/ListBlock.java
index cad844d3e..723b7d4d9 100644
--- a/src/org/apache/fop/fo/flow/ListBlock.java
+++ b/src/org/apache/fop/fo/flow/ListBlock.java
@@ -145,6 +145,12 @@ public class ListBlock extends FObj {
startIndent += bodyIndent + distanceBetweenStarts;
bodyIndent = startIndent;
}
+
+ if (this.isInTableCell) {
+ startIndent += forcedStartOffset;
+ endIndent += area.getAllocationWidth() - forcedWidth -
+ forcedStartOffset;
+ }
}
BlockArea blockArea =