https://issues.apache.org/bugzilla/show_bug.cgi?id=51245

--- Comment #5 from Alexander Chingarev <alexander.chinga...@duallab.com> 
2011-08-12 09:55:38 UTC ---
Hi Vincent,

We dived into internals of page breaking algorithm and seems it is not
correctly applied to fo:block-container.

We overrided doLayout method in BlockContainerLayoutManager.java so it
implements different page pareaking logics. The only difference in overriden
function is:
int optimalPageCount = alg.findBreakingPoints(effectiveList, 1, true,     
BreakingAlgorithm.ONLY_FORCED_BREAKS);
instead of
int optimalPageCount = alg.findBreakingPoints(effectiveList, 1, true,     
BreakingAlgorithm.ALL_BREAKS);

Seems it fixes the issue. 

Can you please take a look at the fix? Do you see any potencial regressions of
it?

Modified AbstractBreaker.java and BlockContainerLayoutManager.java are
attached.

Kind Regards,
Alexander

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to