xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hennebert <vincent.henneb...@anyware-tech.com>
Subject Re: Is this a bug?
Date Thu, 14 Feb 2008 15:38:05 GMT
Hi,

nmwp wrote:
> Hi
> 
> As I just know fop since 2 days, I'm not sure if this is a bug... can
> someone check if it is. Just render the lower fo. The biggest bug is that
> lower table with 2 rows as the fo specifies only 1 row.
> 
> -- nwp
<snip/>
> 		
>   <fo:block width="2cm">BUG: this block should have 2cm in width</fo:block>

“width” doesn’t apply to fo:block. You must do something like the 
following:
    <fo:block-container width="2cm">
      <fo:block>this block will have a width of 2cm</fo:block>
    </fo:block-container>

>   <fo:block-container z-index="1" position="absolute" left="0cm" top="1cm" overflow="hidden">
>     <fo:block width="2cm">BUG: this block is inside a block-container and it
>       should have 2cm in width</fo:block>
>   </fo:block-container>

Same here, move the width="2cm" to the enclosing block-container.

<snip/>
>   <fo:block-container z-index="1" position="absolute" left="0cm" 
>     top="5cm"
>     overflow="hidden">
>     <fo:block>
>       <fo:table table-layout="fixed" width="100%">
>         <fo:table-column column-width="1cm" column-number="1"/>
>         <fo:table-column column-width="7cm" column-number="2"/>
>         <fo:table-column column-width="1cm" column-number="3"/>
>         <fo:table-column column-width="7cm" column-number="4"/>
>         <fo:table-column column-width="1cm" column-number="5"/>
>         <fo:table-body>
>           <fo:table-row>
>             <fo:table-cell border="1px solid black">
>               <fo:block> </fo:block>
>             </fo:table-cell>
>             <fo:table-cell border="1px solid black">
>               <fo:block>some short text</fo:block>
>             </fo:table-cell>
>             <fo:table-cell border="1px solid black">
>               <fo:block> </fo:block>
>             </fo:table-cell>
>             <fo:table-cell border="1px solid black">
>               <fo:block background-color="silver">BUG!!! table inside
>                 block-container. Some very long text that cause some magic and creates
>                 second row</fo:block>
>             </fo:table-cell>
>             <fo:table-cell border="1px solid black">
>               <fo:block> </fo:block>
>             </fo:table-cell>
>           </fo:table-row>
>         </fo:table-body>
>       </fo:table>
>     </fo:block>				
>   </fo:block-container>

This is due to a bug in the handling of block-containers which was fixed 
recently in the Trunk. Meanwhile setting keep-together="always" on the 
table avoids the problem.

HTH,
Vincent


--
Vincent Hennebert                            Anyware Technologies
http://people.apache.org/~vhennebert         http://www.anyware-tech.com
Apache FOP Committer                         FOP Development/Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message