Bug 7283 - Table border misaligned when using margin-left in flow
Summary: Table border misaligned when using margin-left in flow
Status: CLOSED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.20.3
Hardware: PC Linux
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-20 13:55 UTC by Rudolf Hers
Modified: 2012-04-01 13:49 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rudolf Hers 2002-03-20 13:55:21 UTC
When converting the below fo document to PDF the table border isn't drawn around
the table cells. It seems that the table content honors the margin-left="3cm"
attribute on fo:flow, but the border ignores it.

<?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 master-name="simple"
                  page-height="29.7cm" 
                  page-width="21cm"
                  margin-top="1cm" 
                  margin-bottom="2cm" 
                  margin-left="2.5cm" 
                  margin-right="2.5cm">
      <fo:region-body margin-top="3cm"/>
      <fo:region-before extent="3cm"/>
      <fo:region-after extent="1.5cm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>

  <fo:page-sequence master-reference="simple">

    <fo:flow flow-name="xsl-region-body" margin-left="3cm">

      <fo:table table-layout="fixed">
        <fo:table-column column-width="11mm"/>
        <fo:table-column column-width="2cm"/>
        <fo:table-column column-width="31mm"/>
        <fo:table-body>
          <fo:table-row font-size="11pt">
	    <fo:table-cell border-style="solid">
              <fo:block>cell1</fo:block>
            </fo:table-cell>
	    <fo:table-cell border-style="solid">
              <fo:block>cell2</fo:block>
            </fo:table-cell>
	    <fo:table-cell border-style="solid">
              <fo:block>cell3</fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
	    <fo:table-cell border-style="solid">
              <fo:block>cell4</fo:block>
            </fo:table-cell>
	    <fo:table-cell border-style="solid">
              <fo:block>cell5</fo:block>
            </fo:table-cell>
	    <fo:table-cell border-style="solid">
              <fo:block>cell6</fo:block>
            </fo:table-cell>
	  </fo:table-row>
        </fo:table-body>
      </fo:table>
    </fo:flow>
  </fo:page-sequence>
</fo:root>
Comment 1 Pascal Sancho 2007-10-23 07:11:55 UTC
margin properties don't apply to fo:flow (see REC 1.1, 6.4.19)
Comment 2 Glenn Adams 2012-04-01 13:49:18 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs