From 4da95ec834623cd0927311fb92243815156efd2b Mon Sep 17 00:00:00 2001 From: Finn Bock Date: Thu, 26 Feb 2004 15:33:42 +0000 Subject: Support for percentages in property expression. The different length properties all implement a Length interface and all clients of the property subsystem must use the Length interface when retrieving lengths. The two different numerics (absolute and relative) both implement a Numeric interface and all property calculations are done in terms of the Numeric interface. Lengths can be cast to numeric and can thus participate in expresions and numerics can be cast to length (when dimension is 1) and can thus be used as a length by the clients. The call to Length.getValue() will cause relative lengths to be resolved against their base length, and care must be taken to ensure that getLength() is only called after all baselength has been assigned to the FO elements. PR: 26778 (first part). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197380 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/expr/PPColWidthFunction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/java/org/apache/fop/fo/expr/PPColWidthFunction.java') diff --git a/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java b/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java index 06edf8d41..a34c77399 100644 --- a/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java +++ b/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java @@ -89,7 +89,7 @@ public class PPColWidthFunction extends FunctionBase { + "may only be used on table-column FO"); } // Check if table-layout is "fixed"... - return new TableColLength(d.doubleValue()); + return new TableColLength(d.doubleValue(), pInfo.getFO()); } } -- cgit v1.2.3