From: Vincent Hennebert Date: Tue, 13 Oct 2009 10:25:42 +0000 (+0000) Subject: Bugzilla 47835: fixed handling of percentage values for provisional-distance-between... X-Git-Tag: fop-1_0~142 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f5415501c73ee5c27e48834b5e51b74e27b99417;p=xmlgraphics-fop.git Bugzilla 47835: fixed handling of percentage values for provisional-distance-between-starts. Patch submitted by Jonathan Levinson git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@824668 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/FOPropertyMapping.java b/src/java/org/apache/fop/fo/FOPropertyMapping.java index b4a864e43..3946a3c1b 100644 --- a/src/java/org/apache/fop/fo/FOPropertyMapping.java +++ b/src/java/org/apache/fop/fo/FOPropertyMapping.java @@ -2525,6 +2525,7 @@ public final class FOPropertyMapping implements Constants { m = new LengthProperty.Maker(PR_PROVISIONAL_DISTANCE_BETWEEN_STARTS); m.setInherited(true); m.setDefault("24pt"); + m.setPercentBase(LengthBase.CONTAINING_BLOCK_WIDTH); addPropertyMaker("provisional-distance-between-starts", m); // ref-id diff --git a/status.xml b/status.xml index e9256ffe2..bfd2bc1ec 100644 --- a/status.xml +++ b/status.xml @@ -58,6 +58,9 @@ documents. Example: the fix of marks layering will be such a case when it's done. --> + + Fixed handling of percentage values for provisional-distance-between-starts. + Added support for positioning Page Overlays in AFP Output diff --git a/test/layoutengine/standard-testcases/list_provisional-distance-between-starts_percentage.xml b/test/layoutengine/standard-testcases/list_provisional-distance-between-starts_percentage.xml new file mode 100644 index 000000000..d184fac29 --- /dev/null +++ b/test/layoutengine/standard-testcases/list_provisional-distance-between-starts_percentage.xml @@ -0,0 +1,104 @@ + + + + + +

+ This test checks that provisional-distance-between-starts works correctly when specified as a + percentage. +

+
+ + + + + + + + + + + + + • + + + list item 1 + + + + + • + + + list item 2 + + + + Inside a block-container: + + + + + • + + + list item 1 + + + + + • + + + list item 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +