From 7ea9a12465abfa31ac0a07a5535538ca0f04f655 Mon Sep 17 00:00:00 2001 From: Manuel Mall Date: Sat, 6 May 2006 10:10:08 +0000 Subject: [PATCH] Fixed incorrect handling of percentages in vertical-align property values and added testcase git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@400279 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/fo/FOPropertyMapping.java | 1 + status.xml | 3 ++ .../inline_vertical-align_1.xml | 54 ++++++++++++++++--- 3 files changed, 51 insertions(+), 7 deletions(-) diff --git a/src/java/org/apache/fop/fo/FOPropertyMapping.java b/src/java/org/apache/fop/fo/FOPropertyMapping.java index 307e1d5a3..c69f47f25 100644 --- a/src/java/org/apache/fop/fo/FOPropertyMapping.java +++ b/src/java/org/apache/fop/fo/FOPropertyMapping.java @@ -2669,6 +2669,7 @@ public class FOPropertyMapping implements Constants { m.addEnum("bottom", getEnumProperty(EN_BOTTOM, "BOTTOM")); m.setDatatypeParser(new VerticalAlignShorthandParser()); m.setDefault("baseline"); + m.setPercentBase(LengthBase.ALIGNMENT_ADJUST); addPropertyMaker("vertical-align", m); // white-space diff --git a/status.xml b/status.xml index 36fc373ed..d355d2289 100644 --- a/status.xml +++ b/status.xml @@ -27,6 +27,9 @@ + + Bugfix: Percentages in vertical-align property values were not correctly handled. + Bugfix: Gaps in table-columns cause a NullPointerException. diff --git a/test/layoutengine/standard-testcases/inline_vertical-align_1.xml b/test/layoutengine/standard-testcases/inline_vertical-align_1.xml index 457b4a898..eed8d39f5 100644 --- a/test/layoutengine/standard-testcases/inline_vertical-align_1.xml +++ b/test/layoutengine/standard-testcases/inline_vertical-align_1.xml @@ -24,7 +24,7 @@ - + @@ -57,6 +57,18 @@ Before vertical-align="sub" After + + Before vertical-align="3pt" After + + + Before vertical-align="-3pt" After + + + Before vertical-align="50%" After + + + Before vertical-align="-50%" After + Before vertical-align="super" After @@ -131,18 +143,46 @@ - + - - - + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.39.5