Jeandur,

I don't see anything wrong.
In the 3rd cell, since the height of the cell equals to its content,
display-align cannot affect it.

If you are speaking about the vertical alignment of the image within its
line, this is another topic.
You can change the vertical alignment of a graphic object (the
fo:instream-object in your case) with appropriate properties:
either alignment-adjust or the shorthand vertical-align.

HTH,
Pascal

Jeandur a écrit :
> Dear Fop Users,
>
> I'm facing a very strange behavior with fop095/jdk1.6 and  mixed "content"
> (Instream and text) inside a table cell :
> . If the text is alone inside the cell, it is centered.
> . If the instream object is alone inside the cell, it is centered too.
> . But with booth inside the same cell, it doesn't work. Only the Instream
> object is centered and the text is bottom aligned.
>
>
> Following the code I'm using :
> <!-- [..] -->
>             <fo:table-body>
>               <fo:table-row>
>                 <fo:table-cell display-align="center" border-width="0.5mm"
> border-style="solid">
>                   <fo:block> Some text vertical centered</fo:block>
>                 </fo:table-cell>
>
>                 <fo:table-cell display-align="center" border-width="0.5mm"
> border-style="solid">
>                   <fo:block>
>                     <fo:instream-foreign-object>
>                       <svg height="20pt" width="20pt">
>                         <g style="fill:red; stroke:#000000">
>                           <rect height="20" width="20" x="0" y="0" />
>                         </g>
>                       </svg>
>                     </fo:instream-foreign-object>
>                   </fo:block>
>                 </fo:table-cell>
>
>                 <fo:table-cell display-align="center" border-width="0.5mm"
> border-style="solid">
>                   <fo:block>Some text with instream centered
>                   ?<fo:instream-foreign-object>
>                       <svg height="20pt" width="20pt">
>                         <g style="fill:red; stroke:#000000">
>                           <rect height="20" width="20" x="0" y="0" />
>                         </g>
>                       </svg>
>                     </fo:instream-foreign-object> </fo:block>
>                 </fo:table-cell>
>               </fo:table-row>
>             </fo:table-body>
> <!-- [...]-->
> This is very annoying for us, because it seemed to work with fop025 :-(
>
> Any suggestions or advice will be armed welcome !
> Thanks in advance.
> Jean
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to