Author: adelmelle
Date: Thu May 1 02:16:05 2008
New Revision: 652456
URL: http://svn.apache.org/viewvc?rev=652456&view=rev
Log:
Tweak: activate max-height/min-height and max-width/min-width
Modified:
xmlgraphics/fop/trunk/src/documentation/content/xdocs/compliance.ihtml
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOPropertyMapping.java
Modified: xmlgraphics/fop/trunk/src/documentation/content/xdocs/compliance.ihtml
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/documentation/content/xdocs/compliance.ihtml?rev=652456&r1=652455&r2=652456&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/documentation/content/xdocs/compliance.ihtml
(original)
+++ xmlgraphics/fop/trunk/src/documentation/content/xdocs/compliance.ihtml Thu
May 1 02:16:05 2008
@@ -3995,7 +3995,7 @@
<td class="no">no</td>
- <td class="no">no</td>
+ <td class="yes">yes</td>
<td align="center"> </td>
</tr>
@@ -4014,7 +4014,7 @@
<td class="no">no</td>
- <td class="no">no</td>
+ <td class="yes">yes</td>
<td align="center"> </td>
</tr>
@@ -4033,7 +4033,7 @@
<td class="no">no</td>
- <td class="no">no</td>
+ <td class="yes">yes</td>
<td align="center"> </td>
</tr>
@@ -4052,7 +4052,7 @@
<td class="no">no</td>
- <td class="no">no</td>
+ <td class="yes">yes</td>
<td align="center"> </td>
</tr>
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOPropertyMapping.java
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOPropertyMapping.java?rev=652456&r1=652455&r2=652456&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOPropertyMapping.java
(original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOPropertyMapping.java Thu
May 1 02:16:05 2008
@@ -1423,27 +1423,31 @@
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]