[ 
https://issues.apache.org/jira/browse/FOP-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16643008#comment-16643008
 ] 

Dan Caprioara commented on FOP-2820:
------------------------------------

I have attached a patch and the test file for the layout engine.

The top padding and border are applied only at the beginning of the block 
container, on the first page.

The bottom padding and border are applied only at the end of the block 
container, on the last page.

> Top/Bottom borders and padding of block containers are repeated after the 
> page break
> ------------------------------------------------------------------------------------
>
>                 Key: FOP-2820
>                 URL: https://issues.apache.org/jira/browse/FOP-2820
>             Project: FOP
>          Issue Type: Bug
>          Components: layout/block
>    Affects Versions: 2.3
>            Reporter: Dan Caprioara
>            Priority: Major
>         Attachments: block-container_borders-padding-and-page-breaks.xml, 
> fo-block-container.png, fo-block.png, fop.patch
>
>
> There is a big difference between a block and a block-container regarding the 
> borders and padding when the page breaks.
> The borders should be like this (this is a plain {{fo:block}}):
>  !fo-block.png!
> But instead is like this ( this is a {{fo:block-container -}} ignore the 
> text, chck the borders):
>  !fo-block-container.png!
> If you have a longer text in the block container and it spans on several 
> pages then it starts to bleed out of the page.
> I found a fix for that, I will post it below.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to