From f5415501c73ee5c27e48834b5e51b74e27b99417 Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Tue, 13 Oct 2009 10:25:42 +0000 Subject: [PATCH] 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 --- .../org/apache/fop/fo/FOPropertyMapping.java | 1 + status.xml | 3 + ...nal-distance-between-starts_percentage.xml | 104 ++++++++++++++++++ 3 files changed, 108 insertions(+) create mode 100644 test/layoutengine/standard-testcases/list_provisional-distance-between-starts_percentage.xml 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-- 2.39.5