fop-users  

Re: Problem with vertical align of a list-item-label

Pascal Sancho
Tue, 09 Feb 2010 00:15:08 -0800

Hi Mario,

This cannot work:
 - fo:wrapper doesn't generate any area, so the vertical-align has no
effect on it.
 - vertical-align is not inheritable, so this has no effect on
descendant characters of fo:wrapper.

You should apply the vertical-align  property on a fo-object that
generates an area, in your case:
 - either an fo:inline
 - or an fo:character

Pascal

Mario Madunic a écrit :
> <fo:list-item margin-top="7pt" margin-bottom="7pt">
> >   <fo:list-item-label end-indent="label-end()">
> >     <fo:block margin-left="-0.2in">
> >       <fo:inline>
> >         <fo:wrapper font-size="10pt" vertical-align="middle">□</fo:wrapper>
> >       </fo:inline>
> >     </fo:block>
> >   </fo:list-item-label>
> >   <fo:list-item-body margin-left="0.0in" start-indent="body-start()">
> >     <fo:block>Axle beam</fo:block>
> >   </fo:list-item-body>
> > </fo:list-item>
> >


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