aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/FOPropertyMapping.java
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2008-05-01 09:16:05 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2008-05-01 09:16:05 +0000
commit99d913e85de420ed51d5d83638876c316abcde0d (patch)
tree40b3e63c449dddc503322fc9badadfb362e62c07 /src/java/org/apache/fop/fo/FOPropertyMapping.java
parent7dc0ea558a66ce24af23b22c859a27eb3fc46da5 (diff)
downloadxmlgraphics-fop-99d913e85de420ed51d5d83638876c316abcde0d.tar.gz
xmlgraphics-fop-99d913e85de420ed51d5d83638876c316abcde0d.zip
Tweak: activate max-height/min-height and max-width/min-width
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@652456 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/FOPropertyMapping.java')
-rw-r--r--src/java/org/apache/fop/fo/FOPropertyMapping.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/java/org/apache/fop/fo/FOPropertyMapping.java b/src/java/org/apache/fop/fo/FOPropertyMapping.java
index 5d4185d68..3d1a46709 100644
--- a/src/java/org/apache/fop/fo/FOPropertyMapping.java
+++ b/src/java/org/apache/fop/fo/FOPropertyMapping.java
@@ -1423,27 +1423,31 @@ public final class FOPropertyMapping implements Constants {
addPropertyMaker("inline-progression-dimension", m);
// max-height
- m = new ToBeImplementedProperty.Maker(PR_MAX_HEIGHT);
+ m = new LengthProperty.Maker(PR_MAX_HEIGHT);
m.setInherited(false);
m.setDefault("0pt");
+ m.setPercentBase(LengthBase.CONTAINING_BLOCK_HEIGHT);
addPropertyMaker("max-height", m);
// max-width
- m = new ToBeImplementedProperty.Maker(PR_MAX_WIDTH);
+ m = new LengthProperty.Maker(PR_MAX_WIDTH);
m.setInherited(false);
m.setDefault("none");
+ m.setPercentBase(LengthBase.CONTAINING_BLOCK_WIDTH);
addPropertyMaker("max-width", m);
// min-height
- m = new ToBeImplementedProperty.Maker(PR_MIN_HEIGHT);
+ m = new LengthProperty.Maker(PR_MIN_HEIGHT);
m.setInherited(false);
m.setDefault("0pt");
+ m.setPercentBase(LengthBase.CONTAINING_BLOCK_HEIGHT);
addPropertyMaker("min-height", m);
// min-width
- m = new ToBeImplementedProperty.Maker(PR_MIN_WIDTH);
+ m = new LengthProperty.Maker(PR_MIN_WIDTH);
m.setInherited(false);
- m.setDefault("");
+ m.setDefault(""); //UA dependent
+ m.setPercentBase(LengthBase.CONTAINING_BLOCK_WIDTH);
addPropertyMaker("min-width", m);
// scaling