You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Chris Bowditch <bo...@hotmail.com> on 2003/11/14 11:17:22 UTC

Padding-left in 1.0dev

FOP Devs,

After Glen's recent success with space-before on Blocks in 1.0 layout, I 
decided to have a look at padding-left.

Changing the IPD in response to padding in the BlockLayoutManager is simple 
enough. The padding Traits are already set on Area by the LM. However, the 
resulting PDF did not having padding. A quick look at PDFRenderer.java shows 
it never looks at Trait.PADDING_BEFORE. Probably because padding on blocks 
was never implemented in 0.20.x.

I did have a quick go at this by inserting the following in 
handleBlockTraits:

currentIPPosition=+block.getTraitAsInteger(Trait.PADDING_BEFORE);

However, this didnt do the trick. Ive run out of time until Monday. In the 
meatime, any thoughts would be appreciated.

Chris

_________________________________________________________________
Sign-up for a FREE BT Broadband connection today! 
http://www.msn.co.uk/specials/btbroadband