xsl-before and xsl-after regions.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193403
13f79535-47bb-0310-9956-
ffa450edef68
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);