From: Jeremias Maerki Date: Tue, 8 Feb 2005 17:41:23 +0000 (+0000) Subject: Forgot to take padding into account. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~108 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1fa0713ce0fa06bb1afdf3a53dcebc777ab5cb4a;p=xmlgraphics-fop.git Forgot to take padding into account. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198399 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/table/Cell.java b/src/java/org/apache/fop/layoutmgr/table/Cell.java index 79f3dcc26..859a8d917 100644 --- a/src/java/org/apache/fop/layoutmgr/table/Cell.java +++ b/src/java/org/apache/fop/layoutmgr/table/Cell.java @@ -290,11 +290,11 @@ public class Cell extends BlockStackingLayoutManager { curBlockArea = new Block(); curBlockArea.addTrait(Trait.IS_REFERENCE_AREA, Boolean.TRUE); curBlockArea.setPositioning(Block.ABSOLUTE); + int indent = 0; + indent += fobj.getCommonBorderPaddingBackground().getBorderStartWidth(false); + indent += fobj.getCommonBorderPaddingBackground().getPaddingStart(false); // set position - int x = xoffset + inRowIPDOffset; - //mimic start-indent - x += fobj.getCommonBorderPaddingBackground().getBorderStartWidth(false); - curBlockArea.setXOffset(x); + curBlockArea.setXOffset(xoffset + inRowIPDOffset + indent); curBlockArea.setYOffset(yoffset); curBlockArea.setIPD(cellIPD); //curBlockArea.setHeight();