]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Change to have the fo:region-body display "on top" in cases of overlap with the other...
authorGlen Mazza <gmazza@apache.org>
Sun, 14 Sep 2003 19:32:44 +0000 (19:32 +0000)
committerGlen Mazza <gmazza@apache.org>
Sun, 14 Sep 2003 19:32:44 +0000 (19:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196908 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/AbstractRenderer.java

index 3609fbeebedf351af1386dea00a4b855e570c6ef..52e07a71e118d44f893d37120280b9db7416e943 100644 (file)
@@ -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);
     }
 
     /**