]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Forgot to take padding into account.
authorJeremias Maerki <jeremias@apache.org>
Tue, 8 Feb 2005 17:41:23 +0000 (17:41 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 8 Feb 2005 17:41:23 +0000 (17:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198399 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/table/Cell.java

index 79f3dcc268387ed72d1035c0b78879cb7bcc881d..859a8d917c4fd64638083525bb8fd3f9eb646f87 100644 (file)
@@ -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();