Re: Fixed table layout, fixed row height, not getting expected row height

2011-11-03 Thread Pascal Sancho


Le 01/11/2011 03:29, Todd Hivnor a écrit :
 I'm upgrading from FOP v0.20 to v1.0. My fixed sized tables are coming out a 
 different sized than before. I'm confused about why. 
 
 
 In the code below, I have a table-row with height=100px. The table-cells have 
 20px of padding. I end up using 140px of height, not 100px as I requested 
 with fo:table-row height='100px' It seems that my padding is adding to the 
 row-height, which wasn't happening before.

Yes, that is the expected behaviour, according to XSL-FO REC (see REC
4.2.2 and 4.2.3 at [1] and [2])

current FOP is more compliant against FO-REC than the (very) old FOP
0.2x versions

[1] http://www.w3.org/TR/xsl/#area-common
[2] http://www.w3.org/TR/xsl/#area-geo

 I would much prefer to specify a row height and have it stick. How can I 
 accomplish this? 
 
 
 
 fo:root  xmlns:fo='http://www.w3.org/1999/XSL/Format'
 fo:layout-master-set
fo:simple-page-master master-name=StandardPageMaster margin=0px 
 page-width=400px page-height=300px
  fo:region-body margin=0px /
/fo:simple-page-master
 /fo:layout-master-set
 fo:page-sequence master-reference='StandardPageMaster' 
 fo:flow flow-name='xsl-region-body'
 fo:table table-layout='fixed'
 fo:table-column column-width='200px' /
 fo:table-column column-width='100px' /
 fo:table-body
 fo:table-row height='100px'!-- this row will end up using 140px :( 
 --
 fo:table-cell background-color='#00Bb84' padding='20px'
 fo:blockColumn 1/fo:block
 /fo:table-cell
 fo:table-cell background-color='#008b84'  padding='20px'
 fo:blockColumn 2/fo:block
 /fo:table-cell
 /fo:table-row
 /fo:table-body
 /fo:table
 /fo:flow
 /fo:page-sequence
 /fo:root
 


-- 
Pascal

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Fixed table layout, fixed row height, not getting expected row height

2011-11-03 Thread Todd Hivnor
 I'm upgrading from FOP v0.20 to v1.0. My fixed sized tables are 
coming out a different sized than before. I'm confused about why. 
 
 
 In the code below, I have a table-row with height=100px. The 
table-cells have 20px of padding. I end up using 140px of height, 
 not 
100px as I requested with fo:table-row height='100px' It seems 
that my padding is adding to the row-height, which wasn't happening 
before.

 Yes, that is the expected behaviour, according to XSL-FO REC (see REC
 4.2.2 and 4.2.3 at [1] and [2])

 current FOP is more compliant against FO-REC than the (very) old FOP
 0.2x versions

 [1] http://www.w3.org/TR/xsl/#area-common
 [2] http://www.w3.org/TR/xsl/#area-geo

Ouch. I was afraid of that. 

Thanks for the reality check, now I know what I need to fix. 

 - Todd

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Fixed table layout, fixed row height, not getting expected row height

2011-10-31 Thread Todd Hivnor
I'm upgrading from FOP v0.20 to v1.0. My fixed sized tables are coming out a 
different sized than before. I'm confused about why. 


In the code below, I have a table-row with height=100px. The table-cells have 
20px of padding. I end up using 140px of height, not 100px as I requested with 
fo:table-row height='100px' It seems that my padding is adding to the 
row-height, which wasn't happening before.

I would much prefer to specify a row height and have it stick. How can I 
accomplish this? 



fo:root  xmlns:fo='http://www.w3.org/1999/XSL/Format'
fo:layout-master-set
   fo:simple-page-master master-name=StandardPageMaster margin=0px 
page-width=400px page-height=300px
 fo:region-body margin=0px /
   /fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference='StandardPageMaster' 
fo:flow flow-name='xsl-region-body'
fo:table table-layout='fixed'
    fo:table-column column-width='200px' /
    fo:table-column column-width='100px' /
    fo:table-body
        fo:table-row height='100px'!-- this row will end up using 140px :( 
--
            fo:table-cell background-color='#00Bb84' padding='20px'
                fo:blockColumn 1/fo:block
            /fo:table-cell
            fo:table-cell background-color='#008b84'  padding='20px'
                fo:blockColumn 2/fo:block
            /fo:table-cell
        /fo:table-row
    /fo:table-body
/fo:table
/fo:flow
/fo:page-sequence
/fo:root

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org