From: Jeremias Maerki Date: Mon, 29 Aug 2005 11:51:30 +0000 (+0000) Subject: Set the background traits after the BPD and IPD are set. X-Git-Tag: fop-0_90-alpha1~318 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=149680a54683a81b4bd09a9bcc2a37aa665d2629;p=xmlgraphics-fop.git Set the background traits after the BPD and IPD are set. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264115 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/list/ListBlockLayoutManager.java b/src/java/org/apache/fop/layoutmgr/list/ListBlockLayoutManager.java index 4d97a4a77..4c1048241 100644 --- a/src/java/org/apache/fop/layoutmgr/list/ListBlockLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/list/ListBlockLayoutManager.java @@ -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); }