I have what seems like some weird inconsistent when trying to use block-container to absolutely position a graphic.
(This is often a sign that one is doing something stupid - and a fresh pair of eyes can help.)


The code below works OK (at least it shows the graphic - I still have to adjust the size properly use consistent and proper units).

37 <fo:static-content flow-name="xsl-region-before">
38 <fo:block-container position="absolute" top="0cm" left="0.0cm" height="20.5cm" width="28cm" border="1px solid silver"/>
39 <fo:block-container position='absolute' top='3cm' left='3cm' height='3in' width='2in' border='3px solid blue'>
40 <fo:block><fo:external-graphic src='url(images/img_2.jpg)' content-height='0.5in' content-width='0.5in'/> </fo:block>
41 <fo:block text-align='right' color='red' background-color='yellow'>XbeforeX</fo:block>
42 </fo:block-container>
43 </fo:static-content>
44


However if I INCREASE the width of the block-container in line 39 to 2.5in

39 <fo:block-container position='absolute' top='3cm' left='3cm' height='3in' width='2.5in' border='3px solid blue'>

then the image is NOT displayed!
It is as if it was never there - i.e. the next block is displayed as the 1st line.


Does anyone have any clue as to why this is happening - or what I am doing wrong?

Mike

P.S. I've also encountered some non-intuitive positioning behaviour when using xsl-region-end or xsl-region-after.

The origins for absolute position seem to be relative to the top LH corner of the relevant region.
(at least with the extents I am using.)


Is this correct behaviour?

E.g.
To get something on the visible page in xsl-region-afterr you have to specify a 'top' value < 0.


<fo:static-content flow-name='xsl-region-after'>
<fo:block-container position='absolute' top='-16cm' left='2cm' height='3in' width='2in' border='3px solid yellow'>
<fo:block><fo:external-graphic src='url(img_2.jpg)' content-height='1.5in' content-width='1.5in'/> </fo:block>
<fo:block text-align='right' color='yellow'>after</fo:block>
</fo:block-container>
</fo:static-content>




--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.16 - Release Date: 18/04/2005


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to