diff options
author | Keiron Liddle <keiron@apache.org> | 2002-04-02 11:50:58 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-04-02 11:50:58 +0000 |
commit | c345506f116ea1d241eb616ba8d173f3d5caaca4 (patch) | |
tree | 2deca2ac7b2f94dab18716b24b1d24814baaf92a /src/org/apache/fop/render | |
parent | 90410f7a18c9154a5519e335579b2e3af29e0a76 (diff) | |
download | xmlgraphics-fop-c345506f116ea1d241eb616ba8d173f3d5caaca4.tar.gz xmlgraphics-fop-c345506f116ea1d241eb616ba8d173f3d5caaca4.zip |
basic vertical alignment and height for lines
handles alignment.fo
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194730 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/render')
-rw-r--r-- | src/org/apache/fop/render/AbstractRenderer.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/apache/fop/render/AbstractRenderer.java b/src/org/apache/fop/render/AbstractRenderer.java index 2ecefd9dc..a1aceeac8 100644 --- a/src/org/apache/fop/render/AbstractRenderer.java +++ b/src/org/apache/fop/render/AbstractRenderer.java @@ -254,6 +254,8 @@ public abstract class AbstractRenderer implements Renderer { public void renderViewport(Viewport viewport) { Area content = viewport.getContent(); + int saveBP = currentBPPosition; + currentBPPosition += viewport.getOffset(); if (content instanceof Image) { renderImage((Image) content); } else if (content instanceof Container) { @@ -262,6 +264,7 @@ public abstract class AbstractRenderer implements Renderer { renderForeignObject((ForeignObject) content); } currentBlockIPPosition += viewport.getWidth(); + currentBPPosition = saveBP; } public void renderImage(Image image) { |