You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2002/03/20 14:55:22 UTC

DO NOT REPLY [Bug 7283] New: - Table border misaligned when using margin-left in flow

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7283>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7283

Table border misaligned when using margin-left in flow

           Summary: Table border misaligned when using margin-left in flow
           Product: Fop
           Version: 0.20.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: pdf renderer
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: rhersen@yahoo.se


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>

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org