I'm upgrading from FOP v0.20 to v1.0. My fixed sized tables are coming out a 
different sized than before. I'm confused about why. 


In the code below, I have a table-row with height=100px. The table-cells have 
20px of padding. I end up using 140px of height, not 100px as I requested with 
<fo:table-row height='100px'> It seems that my padding is adding to the 
row-height, which wasn't happening before.

I would much prefer to specify a row height and have it stick. How can I 
accomplish this? 



<fo:root  xmlns:fo='http://www.w3.org/1999/XSL/Format'>
<fo:layout-master-set>
   <fo:simple-page-master master-name="StandardPageMaster" margin="0px" 
page-width="400px" page-height="300px">
         <fo:region-body margin="0px" />
   </fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference='StandardPageMaster' >
<fo:flow flow-name='xsl-region-body'>
<fo:table table-layout='fixed'>
    <fo:table-column column-width='200px' />
    <fo:table-column column-width='100px' />
    <fo:table-body>
        <fo:table-row height='100px'><!-- this row will end up using 140px :( 
-->
            <fo:table-cell background-color='#00Bb84' padding='20px'>
                <fo:block>Column 1</fo:block>
            </fo:table-cell>
            <fo:table-cell background-color='#008b84'  padding='20px'>
                <fo:block>Column 2</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-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to