Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2721

block text-align=right rendered partially outside sufficiently wide parent table-cell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2
    • None
    • layout/unqualified
    • 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

      Attachments

        1. sample_fop.pdf
          6 kB
          Hussein Shafie
        2. sample_xep.pdf
          7 kB
          Hussein Shafie
        3. sample.fo
          5 kB
          Hussein Shafie

        Activity

          People

            Unassigned Unassigned
            h_shafie Hussein Shafie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: