aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorManuel Mall <manuel@apache.org>2006-05-06 10:10:08 +0000
committerManuel Mall <manuel@apache.org>2006-05-06 10:10:08 +0000
commit7ea9a12465abfa31ac0a07a5535538ca0f04f655 (patch)
tree886d156fe12701da11efa86bcb1600278ffab0f8 /src
parentd772a6103849f27f91a96e83a73473b343bebbbc (diff)
downloadxmlgraphics-fop-7ea9a12465abfa31ac0a07a5535538ca0f04f655.tar.gz
xmlgraphics-fop-7ea9a12465abfa31ac0a07a5535538ca0f04f655.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fo/FOPropertyMapping.java1
1 files changed, 1 insertions, 0 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