aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2003-09-14 19:32:44 +0000
committerGlen Mazza <gmazza@apache.org>2003-09-14 19:32:44 +0000
commit3bb144d8740599c1a41ca5cef06d519e726822d5 (patch)
treea60b29591517a225e7478ec40eeb2460e57b8f0a
parentd08ef7da751212f8fa5c3293189e85c0c6d69610 (diff)
downloadxmlgraphics-fop-3bb144d8740599c1a41ca5cef06d519e726822d5.tar.gz
xmlgraphics-fop-3bb144d8740599c1a41ca5cef06d519e726822d5.zip
Change to have the fo:region-body display "on top" in cases of overlap with the other fo:regions.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196908 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/render/AbstractRenderer.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/render/AbstractRenderer.java b/src/java/org/apache/fop/render/AbstractRenderer.java
index 3609fbeeb..52e07a71e 100644
--- a/src/java/org/apache/fop/render/AbstractRenderer.java
+++ b/src/java/org/apache/fop/render/AbstractRenderer.java
@@ -276,17 +276,21 @@ public abstract class AbstractRenderer extends AbstractLogEnabled
* @param page The page whos page areas are to be rendered
*/
protected void renderPageAreas(Page page) {
+ /* Spec does not appear to specify whether fo:region-body should
+ appear above or below side regions in cases of overlap. FOP
+ decision is to have fo:region-body on top, hence it is rendered
+ last here. */
RegionViewport viewport;
viewport = page.getRegion(Region.BEFORE_CODE);
renderRegionViewport(viewport);
viewport = page.getRegion(Region.START_CODE);
renderRegionViewport(viewport);
- viewport = page.getRegion(Region.BODY_CODE);
- renderRegionViewport(viewport);
viewport = page.getRegion(Region.END_CODE);
renderRegionViewport(viewport);
viewport = page.getRegion(Region.AFTER_CODE);
renderRegionViewport(viewport);
+ viewport = page.getRegion(Region.BODY_CODE);
+ renderRegionViewport(viewport);
}
/**