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

Extra space added after table under some circumstances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 0.94
    • None
    • layout/unqualified
    • None
    • Operating System: All
      Platform: Other
    • 43616

    Description

      I know the summary sounds vague, but I really can't pinpoint the problem.
      Best way to describe the problem is by simply showing it. Consider the following
      short XSL-FO:

      <?xml version="1.0" encoding="UTF-8"?>
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <fo:layout-master-set>
      <fo:simple-page-master margin-left="0.75in" margin-right="0.75in"
      master-name="letter" page-height="11in" page-width="8.5in">
      <fo:region-body margin-bottom="1.0cm" margin-top="0.7cm" />
      <fo:region-after extent="1.0cm" />
      </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="letter">
      <fo:flow flow-name="xsl-region-body" font-size="7.5pt">
      <fo:table table-layout="fixed" width="100%" border="thin solid red">
      <fo:table-column column-width="30%" />
      <fo:table-column column-width="70%" />
      <fo:table-body>
      <fo:table-row>
      <fo:table-cell>
      <fo:block/>
      </fo:table-cell>
      <fo:table-cell>
      <fo:table table-layout="fixed" width="100%">
      <fo:table-column border="thin solid black" column-width="35%" />
      <fo:table-column border="thin solid black" column-width="65%" />
      <fo:table-body>
      <fo:table-row>
      <fo:table-cell>
      <fo:list-block>
      <fo:list-item provisional-distance-between-starts="2.0em">
      <fo:list-item-label end-indent="label-end()">
      <fo:block>?</fo:block>
      </fo:list-item-label>
      <fo:list-item-body start-indent="body-start()">
      <fo:block>Investments</fo:block>
      </fo:list-item-body>
      </fo:list-item>
      </fo:list-block>
      </fo:table-cell>
      <fo:table-cell number-rows-spanned="2">
      <fo:block/>
      </fo:table-cell>
      </fo:table-row>
      <fo:table-row>
      <fo:table-cell>
      <fo:block>Number</fo:block>
      <fo:block>Me</fo:block>
      </fo:table-cell>
      </fo:table-row>
      </fo:table-body>
      </fo:table>
      </fo:table-cell>
      </fo:table-row>
      </fo:table-body>
      </fo:table>
      </fo:flow>
      </fo:page-sequence>
      </fo:root>

      Using FOP 0.94, the red border is drawn about 1-2 em's below the black border,
      for no apparent reason. I would expect the bottom red border to overlap the
      black one.

      However, if you do any of the following, then the bottom red border will overlap
      the black border correctly:

      1) Remove the "number-columns-spanned" attribute of the rightmost cell. Why is
      it related? I have no idea, but it works.

      2) Remove one of the two blocks in the last cell (i.e. remove either the
      "Number" block or the "Me" block). Again, no idea why, but it works.

      I scoured the web trying to look for an answer, but couldn't find any; so I
      decided to file this as a bug... If I am mistaken, then I apologize.

      Wasn't sure which "component" to pick, so chose "fo tree".

      Attachments

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            isaac_s Isaac Shabtay
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: