diff options
author | Finn Bock <bckfnn@apache.org> | 2004-09-22 08:25:16 +0000 |
---|---|---|
committer | Finn Bock <bckfnn@apache.org> | 2004-09-22 08:25:16 +0000 |
commit | db54754167ef28ce8ca2962a732d362501e165ce (patch) | |
tree | c2269971b20021fd3bb5fdbf78d6202a5ce9a7d7 /src/java/org/apache/fop/layoutmgr/PageNumberCitationLayoutManager.java | |
parent | 893015ebcbe33352509861e63f1bbb881e31eae8 (diff) | |
download | xmlgraphics-fop-db54754167ef28ce8ca2962a732d362501e165ce.tar.gz xmlgraphics-fop-db54754167ef28ce8ca2962a732d362501e165ce.zip |
Set content ipd/bpd instead of allocation width/height.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197958 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/PageNumberCitationLayoutManager.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/PageNumberCitationLayoutManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/PageNumberCitationLayoutManager.java b/src/java/org/apache/fop/layoutmgr/PageNumberCitationLayoutManager.java index 7ea98e390..b0d8c6629 100644 --- a/src/java/org/apache/fop/layoutmgr/PageNumberCitationLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/PageNumberCitationLayoutManager.java @@ -82,7 +82,7 @@ public class PageNumberCitationLayoutManager extends LeafNodeLayoutManager { int width = getStringWidth(str); text.setTextArea(str); inline.setIPD(width); - inline.setHeight(font.getAscender() - font.getDescender()); + inline.setBPD(font.getAscender() - font.getDescender()); inline.setOffset(font.getAscender()); inline.addTrait(Trait.FONT_NAME, font.getFontName()); @@ -95,7 +95,7 @@ public class PageNumberCitationLayoutManager extends LeafNodeLayoutManager { String str = "MMM"; // reserve three spaces for page number int width = getStringWidth(str); inline.setIPD(width); - inline.setHeight(font.getAscender() - font.getDescender()); + inline.setBPD(font.getAscender() - font.getDescender()); inline.setOffset(font.getAscender()); inline.addTrait(Trait.FONT_NAME, font.getFontName()); |