https://issues.apache.org/bugzilla/show_bug.cgi?id=50403

           Summary: fo:table-cell is incorrectly inheriting margin
           Product: Fop
           Version: 1.0
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: page-master/layout
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: mike-...@graessle.net


Created an attachment (id=26367)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26367)
Another Example

When a fo:table-cell is embedded withing a fo:block with a margin set, the
fo:table-cell will inherit the margin left from the fo:block.


Example:

<fo:block margin="30px">
  <fo:table width="100%" table-layout="fixed">
    <fo:table-column column-width="proportional-column-width(1)" />
    <fo:table-body>
      <fo:table-row>
        <fo:table-cell>
          <fo:block>
            Table Cell No Margin Defined
          </fo:block>
        </fo:table-cell>
      </fo:table-row>
    </fo:table-body>
  </fo:table>
</fo:block>

When the above is rendered, the text "Table Cell No Margin Defined" will be
rendered with a margin-left of 30.  This happens even if you add another
fo:block outside the table with margin set to 0.  Adding a margin-left="0" to
the fo:table-cell will fix the renderer.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to