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

           Summary: Region-Body Column balancing incorrect if content is
                    table with header
           Product: Fop
           Version: 1.0
          Platform: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: page-master/layout
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: a.kov...@i-docs.com


To reproduce bug please do the following:
Use:
<fo:region-body region-name="PageBody" column-count="2" />

Fill the region-body with content like :
<fo:block span="none" > ...(content is table with header) ..
<fo:block span="all"> ... (one line (summary)) ..

If the content is made of normal blocks the columns are balanced before the
span="all" summary line.
like:
123456    456789
234567    567890
345678    678901
Summary: 1234567890

If the content is a table without headers the columns are balanced correct. 
like:
123456    456789
234567    567890
345678    678901
Summary: 1234567890

If the content is a table with header the columns are not balanced correct.
(the right one is shorter.)
Header    Header
123456    567890
234567    678901
345678    
456789
Summary: 1234567890

The "computeDemerits()" algorithm is wrong in class
"BalancingColumnBreakingAlgorithm".
The "fullLen" value is to short. Exactly the replicated header width is
missing. In the "par" list the header is contained only once although the
header is displayed in every column. (in the example twice)

Solution could be to place the header as many times in the "par" list as many
columns exist, or to count the existing one header as many times as needed.

-- 
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