]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Calculations of indents must use the writing-mode of the parent. See
authorFinn Bock <bckfnn@apache.org>
Sun, 10 Oct 2004 21:12:06 +0000 (21:12 +0000)
committerFinn Bock <bckfnn@apache.org>
Sun, 10 Oct 2004 21:12:06 +0000 (21:12 +0000)
4.2.3:

"""
For purposes of this definition, the content-rectangle of an area uses
the inline-progression-direction and block-progression-direction of that
area; but the border-rectangle, padding-rectangle, and
allocation-rectangle use the directions of its parent area.
"""

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198034 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/FOPropertyMapping.java

index ea70cea0863b7d7658896aecd9f92f0806430b43..25155c8649b585ccb713c44b70c18a0d113e04b2 100644 (file)
@@ -1211,6 +1211,7 @@ public class FOPropertyMapping implements Constants {
         m.setDefault("0pt");
         IndentPropertyMaker sCorr = new IndentPropertyMaker(m);
         sCorr.setCorresponding(PR_MARGIN_LEFT, PR_MARGIN_RIGHT, PR_MARGIN_TOP);
+        sCorr.setUseParent(true);
         sCorr.setRelative(true);
         sCorr.setPaddingCorresponding(new int[] {
              PR_PADDING_LEFT, PR_PADDING_RIGHT, PR_PADDING_TOP 
@@ -1226,6 +1227,7 @@ public class FOPropertyMapping implements Constants {
         m.setDefault("0pt");
         IndentPropertyMaker eCorr = new IndentPropertyMaker(m);
         eCorr.setCorresponding(PR_MARGIN_RIGHT, PR_MARGIN_LEFT, PR_MARGIN_BOTTOM);
+        eCorr.setUseParent(true);
         eCorr.setRelative(true);
         eCorr.setPaddingCorresponding(new int[] {
             PR_PADDING_RIGHT, PR_PADDING_LEFT, PR_PADDING_BOTTOM