Hi Jeremias,

Jeremias Maerki wrote:
> Vincent,
>
> why did you disable this warning here? What's there to clarify? I
> stumbled over this when trying to merge the latest changes from trunk
> into the feedback branch.

I had to make some changes in the way row heights are computed, in order
to tackle the forced break vs fixed row height issue (rev. 635686). This
broke the test that is performed to issue the warning, and given that
it’s not clear yet whether cell borders and border-separation must play
or not in the fixed height [1] I thought it was not worth trying to
re-enable that just now.

Moreover, CSS2 explicitly states that the final height must be the
maximum of the height specified on the row/cells and the content height,
so I’m not even sure a warning is to be expected here. While an
info-level message would certainly make sense, that made me even less
reluctant to leave it commented out for now.

[1] 
http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/200801.mbox/[EMAIL 
PROTECTED]

Vincent


> On 10.03.2008 21:52:48 vhennebert wrote:
>> Author: vhennebert
>> Date: Mon Mar 10 13:52:43 2008
>> New Revision: 635686
>>
>> URL: http://svn.apache.org/viewvc?rev=635686&view=rev
>> Log:
>> Bugfix: forced break ignored when the minimum height of a table-row isn't 
>> reached
>>
> <snip/>
> RowGroupLayoutManager:
>
>>              row.setHeight(rowHeights[rgi]);
>> -            row.setExplicitHeight(explicitRowHeights[rgi]);
>> -            if (maxCellBPD > row.getExplicitHeight().max) {
>> -                log.warn(FONode.decorateWithContextInfo(
>> -                        "The contents of row " + (row.getIndex() + 1)
>> -                        + " are taller than they should be (there is a"
>> -                        + " block-progression-dimension or height 
>> constraint on the indicated row)."
>> -                        + " Due to its contents the row grows"
>> -                        + " to " + maxCellBPD + " millipoints, but the row 
>> shouldn't get"
>> -                        + " any taller than " + row.getExplicitHeight() + " 
>> millipoints.",
>> -                        row.getTableRow()));
>> -            }
>> -        }
>> -        if (log.isDebugEnabled()) {
>> -            log.debug("rowGroup:");
>> -            for (int i = 0; i < rowHeights.length; i++) {
>> -                log.debug("  height=" + rowHeights[i] + " explicit=" + 
>> explicitRowHeights[i]);
>> +            row.setExplicitHeight(explicitRowHeight);
>> +            // TODO re-enable and improve after clarification
>> +//            if (maxCellBPD > row.getExplicitHeight().max) {
>> +//                log.warn(FONode.decorateWithContextInfo(
>> +//                        "The contents of row " + (row.getIndex() + 1)
>> +//                        + " are taller than they should be (there is a"
>> +//                        + " block-progression-dimension or height 
>> constraint
>> +//                        + " on the indicated row)."
>> +//                        + " Due to its contents the row grows"
>> +//                        + " to " + maxCellBPD + " millipoints, but the 
>> row shouldn't get"
>> +//                        + " any taller than " + row.getExplicitHeight() + 
>> " millipoints.",
>> +//                        row.getTableRow()));
>> +//            }
>> +            if (log.isDebugEnabled()) {
>> +                log.debug("  height=" + rowHeights[rgi] + " explicit=" + 
>> explicitRowHeight);
>>              }
>>          }
> <snip/>
>
>
> Jeremias Maerki
>

-- 
Vincent Hennebert                            Anyware Technologies
http://people.apache.org/~vhennebert         http://www.anyware-tech.com
Apache FOP Committer                         FOP Development/Consulting

Reply via email to