From: Steve Coffman Date: Fri, 16 Jun 2000 19:24:01 +0000 (+0000) Subject: This is Jordan Naftolin's patch to allow you to have links in the X-Git-Tag: pre-columns~474 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=07f4cedc2894f30041a5fd1f18f23e975ce097a8;p=xmlgraphics-fop.git This is Jordan Naftolin's patch to allow you to have links in the xsl-before and xsl-after regions. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193403 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/fo/flow/StaticContent.java b/src/org/apache/fop/fo/flow/StaticContent.java index 5e21aefdc..26c07b8f5 100644 --- a/src/org/apache/fop/fo/flow/StaticContent.java +++ b/src/org/apache/fop/fo/flow/StaticContent.java @@ -94,6 +94,17 @@ public class StaticContent extends FObj { public Status layout(Area area) throws FOPException { int numChildren = this.children.size(); + // Set area absolute height so that link rectangles will be drawn correctly in xsl-before and xsl-after + String flowName = this.properties.get("flow-name").getString(); + if(flowName.equals("xsl-before")) + { + area.setAbsoluteHeight(-area.getMaxHeight()); + } + else if(flowName.equals("xsl-after")) + { + area.setAbsoluteHeight(area.getPage().getBody().getMaxHeight()); + } + for (int i = 0; i < numChildren; i++) { FObj fo = (FObj) children.elementAt(i); fo.layout(area);