You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Mazza, Glen R, PERSCOM" <Gl...@hoffman.army.mil> on 2002/09/20 22:52:50 UTC

Question on margin and extent sizes

Hello,

I'm trying to understand margin attributes with fo:simple-page-master and
fo:region-body.  Just would like to confirm two issues:

Example SPM:

<fo:simple-page-master master-name="BasicSPM"
    page-height="8.5in" 
    page-width="11in"
    margin-top="0.5in" 
    margin-bottom="0.5in"
    margin-left="0.5in" 
    margin-right="0.5in">
    <fo:region-before extent="3.3in"/> 
    <fo:region-body margin-top="3.0in" margin-bottom="0.75in"/>
    <fo:region-after extent="4in"/>
</fo:simple-page-master>

Just to make sure I understand:

Q1.) The region-body's margin-xxx attributes are not with respect to the
whole page but to the page minus the margins declared with the
simple-page-master:

Actual margin-top for the region-body:  0.5in (from SPM) + 3.0in = 3.5in
from top of paper
Actual margin-bottom for the region-body:  0.5in (from SPM) + 0.75in =
1.25in from bottom of paper

Q2.) The extent size for region-before and region-after is limited by what
is available in the zone between the SPM's margin-XXX and the region-body's
margin-XXX (i.e., specified margins take precedence):

region-before extent = minimum(3.3in, 3.0+0.5in)= 3.3in.
region-after extent = minimum(4in, 0.5+0.75in) = 1.25in.

Thanks,
Glen

Re: Question on margin and extent sizes

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Mazza, Glen R, PERSCOM wrote:
> Q1.) The region-body's margin-xxx attributes are not with respect to the
> whole page but to the page minus the margins declared with the
> simple-page-master:
> 
> Actual margin-top for the region-body:  0.5in (from SPM) + 3.0in = 3.5in
> from top of paper
> Actual margin-bottom for the region-body:  0.5in (from SPM) + 0.75in =
> 1.25in from bottom of paper

Correct.

> Q2.) The extent size for region-before and region-after is limited by what
> is available in the zone between the SPM's margin-XXX and the region-body's
> margin-XXX (i.e., specified margins take precedence):
> 
> region-before extent = minimum(3.3in, 3.0+0.5in)= 3.3in.
> region-after extent = minimum(4in, 0.5+0.75in) = 1.25in.

Wrong. Regions can and do overlap. The extent of a region is the
extent declared for the region.

J.Pietschmann