Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.2
-
None
-
None
-
Any OS, any version of Java.
Description
*Description: *
In some cases, a fo:block having text-align="right" or" center" is rendered partially outside its parent fo:table-cell, even if this fo:table-cell has sufficient width to contain the fo:block entirely.
In the same cases, fo:blocks having text-align="left" are rendered just fine.
In order to trigger this bug, the ancestor fo:table must be itself contained in a fo:block having a positive margin-left and margin-right ("8em" in sample.fo).
Steps to Reproduce:
run:
fop -fo sample.fo -pdf sample_fop.pdf
where sample.fo is the XSL-FO file attached to this bug report.
Actual Results:
fo:blocks having text-align="right" or" center" rendered partially outside their parent fo:table-cell.
See attached sample_fop.pdf
Expected Results:
fo:blocks having text-align="right" or" center" rendered fully inside their parent fo:table-cell.
See attached sample_xep.pdf