xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36016] - leader-pattern-width=<percentage> gives error
Date Tue, 09 Aug 2005 07:18:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36016>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36016





------- Additional Comments From mm@arcus.com.au  2005-08-09 09:18 -------
Similar to Bugs #36014 and #36018 I found the cause of the problem but 'what's
the fix'? The cause is simple - the leader-pattern-width property is defined as
having a percentage based of type LengthBase.CONTAINING_BOX. But in
LengthBase.getBaseLength() the switch statement doesn't handle that case =>
error message.

For "leader-pattern-width" and "leader-width" the spec says: Percentages refer
to the inline-progression-dimension of content-rectangle of parent area.

So I looked at the code and thought a statement like:
    parentFO.getLayoutDimension(PercentBase.BLOCK_IPD).intValue();
should do the trick. But that is the code used in the case of percent base set
to LengthBase.BLOCK_WIDTH. That means this should return the IPD of the
containing block which may not be the same as the parent area as the parent area
could be an inline area.

So how do I get to the IPD of the parent area?



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

Mime
View raw message