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

http://issues.apache.org/bugzilla/show_bug.cgi?id=43709

           Summary: provisional-distance-between-starts causes unnecessary
                    margin for nested tables
           Product: Fop
           Version: 1.0dev
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: fo tree
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: [EMAIL PROTECTED]


As always, the best way to explain is by example...

The following XSL-FO has a list-block with provisional-distance-between-starts
defined. The list item inside it owns a table.

For some reason, each cell in the table has a left-padding equal to the value of
the enclosing provisional-distance-between-starts:

<?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.5cm" />
                </fo:simple-page-master>
        </fo:layout-master-set>
        <fo:page-sequence master-reference="letter">
                <fo:flow flow-name="xsl-region-body" font-size="9pt">
                        <fo:list-block 
provisional-distance-between-starts="3.0em"
provisional-label-separation="0">
                                <fo:list-item space-before="1.0em">
                                        <fo:list-item-label 
end-indent="label-end()">
                                                <fo:block>1.</fo:block>
                                        </fo:list-item-label>
                                        <fo:list-item-body 
start-indent="body-start()">
                                                <fo:block 
font-weight="bold">Item 1</fo:block>
                                                <fo:block font-size="0.8em" 
space-before="1.0em">
                                                        <fo:table 
table-layout="fixed" width="100%">
                                                                
<fo:table-column border="thin solid black" column-width="100%" />
                                                                <fo:table-body>
                                                                        
<fo:table-row>
                                                                                
<fo:table-cell>
                                                                                
        <fo:block font-weight="bold" padding-bottom="1.0em">Title 1</fo:block>
                                                                                
        <fo:block>Text 1</fo:block>
                                                                                
</fo:table-cell>
                                                                        
</fo:table-row>
                                                                </fo:table-body>
                                                        </fo:table>
                                                </fo:block>
                                        </fo:list-item-body>
                                </fo:list-item>
                        </fo:list-block>
                </fo:flow>
        </fo:page-sequence>
</fo:root>
 
Expected result: Left-padding of the table-cells should be 0. The setting of
provisional-distance-between-starts shouldn't affect the padding of the cells.

Tested with rev-588275.

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

Reply via email to