Bug 37126 - Problem with padding in table
Summary: Problem with padding in table
Status: CLOSED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: page-master/layout (show other bugs)
Version: trunk
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-17 18:51 UTC by Yury Litvinov
Modified: 2012-04-01 13:49 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yury Litvinov 2005-10-17 18:51:05 UTC
Hi,
please, have a look at this example. 
It works fine in FOP 0.20.5. But in FOP 1.0 we get problem.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <fo:layout-master-set>
    <fo:simple-page-master 
       master-name="simple"
       margin="100pt"
       page-width="20cm"
       page-height="30cm">
      <fo:region-body/>
    </fo:simple-page-master>
  </fo:layout-master-set>

   <fo:page-sequence master-reference="simple">
      <fo:flow flow-name="xsl-region-body">
      
         <fo:table>
            <fo:table-column column-width="2cm"/>

            <!-- This line indicate that cell must have border and padding!  -->
            <fo:table-body border-style="solid" padding="30pt">
               <fo:table-row >
                  <fo:table-cell>
                     <fo:block >
                      Must have a padding!!!
                     </fo:block>
                  </fo:table-cell>
               </fo:table-row>
            </fo:table-body>

         </fo:table>
      </fo:flow>
   </fo:page-sequence>
</fo:root>

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

As you see there is no padding. Have you any suggestions how to solve the 
problem?
Comment 1 Andreas L. Delmelle 2005-10-17 19:13:19 UTC
Hi,

The explanation is that FOP 1.0 is actually more compliant than FOP 0.20.5.
The common padding properties *never* apply to any table-related FO other than an fo:table or an fo:
table-cell (and only to an fo:table-cell in case the table has border-collapse="collapse").

The only solution I see to get the desired effect is that the padding is specified explicitly on the cells 
themselves.

HTH!

Andreas

Comment 2 Glenn Adams 2012-04-01 13:49:29 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs