until the layout is done properly PR: bug id 3475 Submitted by: Paul Austin <p_d_austin@yahoo.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194460 13f79535-47bb-0310-9956-ffa450edef68tags/fop-0_20_3
@@ -143,7 +143,8 @@ public class ExternalGraphic extends FObj { | |||
double ratio = ((double)width) / ((double)height); | |||
int areaWidth = area.getAllocationWidth() - startIndent | |||
- endIndent; | |||
int pageHeight = area.getPage().getHeight(); | |||
int pageHeight = area.getPage().getBody().getMaxHeight() | |||
- spaceBefore; | |||
if (height > pageHeight) { | |||
height = pageHeight; | |||
width = (int)(ratio * ((double)height)); |