|
|
@@ -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); |