]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Set the background traits after the BPD and IPD are set.
authorJeremias Maerki <jeremias@apache.org>
Mon, 29 Aug 2005 11:51:30 +0000 (11:51 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 29 Aug 2005 11:51:30 +0000 (11:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264115 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/list/ListBlockLayoutManager.java

index 4d97a4a778a793df125c362ce9e1aa8f046cc3b7..4c10482418eb184fe3d2fd259a9451d30c8edd4e 100644 (file)
@@ -213,8 +213,6 @@ public class ListBlockLayoutManager extends BlockStackingLayoutManager {
             TraitSetter.setProducerID(curBlockArea, getListBlockFO().getId());
             TraitSetter.addBorders(curBlockArea, 
                     getListBlockFO().getCommonBorderPaddingBackground());
-            TraitSetter.addBackground(curBlockArea, 
-                    getListBlockFO().getCommonBorderPaddingBackground());
             TraitSetter.addMargins(curBlockArea,
                     getListBlockFO().getCommonBorderPaddingBackground(), 
                     getListBlockFO().getCommonMarginBlock());
@@ -224,6 +222,8 @@ public class ListBlockLayoutManager extends BlockStackingLayoutManager {
             
             int contentIPD = referenceIPD - getIPIndents();
             curBlockArea.setIPD(contentIPD);
+            TraitSetter.addBackground(curBlockArea, 
+                    getListBlockFO().getCommonBorderPaddingBackground());
             
             setCurrentArea(curBlockArea);
         }