Hussein Shafie created FOP-2721:
-----------------------------------

             Summary: block text-align=right rendered partially outside 
sufficiently wide parent table-cell
                 Key: FOP-2721
                 URL: https://issues.apache.org/jira/browse/FOP-2721
             Project: FOP
          Issue Type: Bug
          Components: layout/unqualified
    Affects Versions: 2.2
         Environment: Any OS, any version of Java.
            Reporter: Hussein Shafie
         Attachments: sample.fo, sample_fop.pdf, sample_xep.pdf

*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




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to