diff options
author | arved <arved@unknown> | 2001-02-10 23:05:00 +0000 |
---|---|---|
committer | arved <arved@unknown> | 2001-02-10 23:05:00 +0000 |
commit | baef7f168be014314da289bb15f9eb1638a5226a (patch) | |
tree | df8d955261c509dd74cff37acd9dcdec67dd53f4 /src | |
parent | 84c0fc6074c41b54f9d97506cba73023d6aabcc6 (diff) | |
download | xmlgraphics-fop-baef7f168be014314da289bb15f9eb1638a5226a.tar.gz xmlgraphics-fop-baef7f168be014314da289bb15f9eb1638a5226a.zip |
Adding reference areas as children
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194040 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/org/apache/fop/layout/BodyAreaContainer.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/org/apache/fop/layout/BodyAreaContainer.java b/src/org/apache/fop/layout/BodyAreaContainer.java index 8362e37d2..9b07db38c 100644 --- a/src/org/apache/fop/layout/BodyAreaContainer.java +++ b/src/org/apache/fop/layout/BodyAreaContainer.java @@ -112,11 +112,14 @@ public class BodyAreaContainer extends Area { mainRefAreaHeight = maxHeight - beforeFloatRefAreaHeight - footnoteRefAreaHeight; beforeFloatReferenceArea = new AreaContainer(fontState, xPosition, yPosition, allocationWidth, beforeFloatRefAreaHeight, Position.ABSOLUTE); + this.addChild(beforeFloatReferenceArea); + mainReferenceArea = new AreaContainer(fontState, xPosition, yPosition, + allocationWidth, mainRefAreaHeight, Position.ABSOLUTE); + this.addChild(mainReferenceArea); int footnoteRefAreaYPosition = yPosition - mainRefAreaHeight; footnoteReferenceArea = new AreaContainer(fontState, xPosition, footnoteRefAreaYPosition, allocationWidth, footnoteRefAreaHeight, Position.ABSOLUTE); - mainReferenceArea = new AreaContainer(fontState, xPosition, yPosition, - allocationWidth, mainRefAreaHeight, Position.ABSOLUTE); + this.addChild(footnoteReferenceArea); // all padding and border-width must be 0 setPadding(0, 0, 0, 0); |