aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/PageNumberCitationLayoutManager.java
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-09-22 08:25:16 +0000
committerFinn Bock <bckfnn@apache.org>2004-09-22 08:25:16 +0000
commitdb54754167ef28ce8ca2962a732d362501e165ce (patch)
treec2269971b20021fd3bb5fdbf78d6202a5ce9a7d7 /src/java/org/apache/fop/layoutmgr/PageNumberCitationLayoutManager.java
parent893015ebcbe33352509861e63f1bbb881e31eae8 (diff)
downloadxmlgraphics-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.java4
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());