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 Laurent Morel <la...@al6.fr> on 2008/07/29 16:02:21 UTC
Table borders : half thickness for spanned columns
Hello,
I have a strange behaviour for table rendering, which I can't explain.
See example below.
Basically, if number-columns-spanned > 1, the border-bottom property
is applied only to first (original) cell. The next cells only have half the
border thickness (example line 2).
This is not the case if the row below also has spanned columns (example
line 1)
Is that expected ?
How can I get a 1pt border between lines 2 & 3 -- without changing row3 ?
(row3 is generated by a code that does not handle borders)
Example :
<fo:table table-layout="fixed" width="100%" border-collapse="collapse">
<fo:table-column column-width="60mm" border-left="1pt solid"
border-right="1pt solid"/>
<fo:table-column column-width="60mm" border-left="1pt solid"
border-right="1pt solid"/>
<fo:table-body>
<fo:table-row border-top="1pt solid" border-bottom="solid 1pt">
<fo:table-cell number-columns-spanned="2">
<fo:block>
row top=1pt / row bottom=1pt
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row border-bottom="1pt solid">
<fo:table-cell number-columns-spanned="2">
<fo:block>
no top / row bottom=1pt
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block>
no top/bottom
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
no top/bottom ^^^why 1/2pt ?
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Table borders : half thickness for spanned columns
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Ooops, you're right. That was a bug in 0.95beta. It is fixed in the 0.95
branch: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95
I really need to find time to prepare the 0.95 final release at some
point. Priorities. Grmbl...
On 30.07.2008 08:04:52 Laurent Morel wrote:
> Thank you for your attention.
>
> I've tried with 0.94 and it works fine.
> Problem appears only with 0.95beta
> (and I need this last version since it corrects
> i-don't-remember-which-problem).
> Which 0.95 version do you use ?
>
> Jeremias Maerki a écrit :
> > I don't see the problem. With both 0.94 and 0.95 FOP does exactly what
> > you tell it to do. There's a 1pt border between lines 2 & 3 when I run
> > your snippet.
> >
> > On 29.07.2008 16:02:21 Laurent Morel wrote:
> >
> >> Hello,
> >>
> >> I have a strange behaviour for table rendering, which I can't explain.
> >> See example below.
> >> Basically, if number-columns-spanned > 1, the border-bottom property
> >> is applied only to first (original) cell. The next cells only have half the
> >> border thickness (example line 2).
> >> This is not the case if the row below also has spanned columns (example
> >> line 1)
> >>
> >> Is that expected ?
> >> How can I get a 1pt border between lines 2 & 3 -- without changing row3 ?
> >> (row3 is generated by a code that does not handle borders)
> >>
> >> Example :
> >>
> >> <fo:table table-layout="fixed" width="100%" border-collapse="collapse">
> >> <fo:table-column column-width="60mm" border-left="1pt solid"
> >> border-right="1pt solid"/>
> >> <fo:table-column column-width="60mm" border-left="1pt solid"
> >> border-right="1pt solid"/>
> >>
> >> <fo:table-body>
> >>
> >> <fo:table-row border-top="1pt solid" border-bottom="solid 1pt">
> >> <fo:table-cell number-columns-spanned="2">
> >> <fo:block>
> >> row top=1pt / row bottom=1pt
> >> </fo:block>
> >> </fo:table-cell>
> >> </fo:table-row>
> >>
> >> <fo:table-row border-bottom="1pt solid">
> >> <fo:table-cell number-columns-spanned="2">
> >> <fo:block>
> >> no top / row bottom=1pt
> >> </fo:block>
> >> </fo:table-cell>
> >> </fo:table-row>
> >>
> >> <fo:table-row>
> >> <fo:table-cell>
> >> <fo:block>
> >> no top/bottom
> >> </fo:block>
> >> </fo:table-cell>
> >> <fo:table-cell>
> >> <fo:block>
> >> no top/bottom ^^^why 1/2pt ?
> >> </fo:block>
> >> </fo:table-cell>
> >> </fo:table-row>
> >>
> >> </fo:table-body>
> >> </fo:table>
> >>
> >>
> >>
>
>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Table borders : half thickness for spanned columns
Posted by Laurent Morel <la...@al6.fr>.
Thank you for your attention.
I've tried with 0.94 and it works fine.
Problem appears only with 0.95beta
(and I need this last version since it corrects
i-don't-remember-which-problem).
Which 0.95 version do you use ?
Jeremias Maerki a écrit :
> I don't see the problem. With both 0.94 and 0.95 FOP does exactly what
> you tell it to do. There's a 1pt border between lines 2 & 3 when I run
> your snippet.
>
> On 29.07.2008 16:02:21 Laurent Morel wrote:
>
>> Hello,
>>
>> I have a strange behaviour for table rendering, which I can't explain.
>> See example below.
>> Basically, if number-columns-spanned > 1, the border-bottom property
>> is applied only to first (original) cell. The next cells only have half the
>> border thickness (example line 2).
>> This is not the case if the row below also has spanned columns (example
>> line 1)
>>
>> Is that expected ?
>> How can I get a 1pt border between lines 2 & 3 -- without changing row3 ?
>> (row3 is generated by a code that does not handle borders)
>>
>> Example :
>>
>> <fo:table table-layout="fixed" width="100%" border-collapse="collapse">
>> <fo:table-column column-width="60mm" border-left="1pt solid"
>> border-right="1pt solid"/>
>> <fo:table-column column-width="60mm" border-left="1pt solid"
>> border-right="1pt solid"/>
>>
>> <fo:table-body>
>>
>> <fo:table-row border-top="1pt solid" border-bottom="solid 1pt">
>> <fo:table-cell number-columns-spanned="2">
>> <fo:block>
>> row top=1pt / row bottom=1pt
>> </fo:block>
>> </fo:table-cell>
>> </fo:table-row>
>>
>> <fo:table-row border-bottom="1pt solid">
>> <fo:table-cell number-columns-spanned="2">
>> <fo:block>
>> no top / row bottom=1pt
>> </fo:block>
>> </fo:table-cell>
>> </fo:table-row>
>>
>> <fo:table-row>
>> <fo:table-cell>
>> <fo:block>
>> no top/bottom
>> </fo:block>
>> </fo:table-cell>
>> <fo:table-cell>
>> <fo:block>
>> no top/bottom ^^^why 1/2pt ?
>> </fo:block>
>> </fo:table-cell>
>> </fo:table-row>
>>
>> </fo:table-body>
>> </fo:table>
>>
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Table borders : half thickness for spanned columns
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I don't see the problem. With both 0.94 and 0.95 FOP does exactly what
you tell it to do. There's a 1pt border between lines 2 & 3 when I run
your snippet.
On 29.07.2008 16:02:21 Laurent Morel wrote:
> Hello,
>
> I have a strange behaviour for table rendering, which I can't explain.
> See example below.
> Basically, if number-columns-spanned > 1, the border-bottom property
> is applied only to first (original) cell. The next cells only have half the
> border thickness (example line 2).
> This is not the case if the row below also has spanned columns (example
> line 1)
>
> Is that expected ?
> How can I get a 1pt border between lines 2 & 3 -- without changing row3 ?
> (row3 is generated by a code that does not handle borders)
>
> Example :
>
> <fo:table table-layout="fixed" width="100%" border-collapse="collapse">
> <fo:table-column column-width="60mm" border-left="1pt solid"
> border-right="1pt solid"/>
> <fo:table-column column-width="60mm" border-left="1pt solid"
> border-right="1pt solid"/>
>
> <fo:table-body>
>
> <fo:table-row border-top="1pt solid" border-bottom="solid 1pt">
> <fo:table-cell number-columns-spanned="2">
> <fo:block>
> row top=1pt / row bottom=1pt
> </fo:block>
> </fo:table-cell>
> </fo:table-row>
>
> <fo:table-row border-bottom="1pt solid">
> <fo:table-cell number-columns-spanned="2">
> <fo:block>
> no top / row bottom=1pt
> </fo:block>
> </fo:table-cell>
> </fo:table-row>
>
> <fo:table-row>
> <fo:table-cell>
> <fo:block>
> no top/bottom
> </fo:block>
> </fo:table-cell>
> <fo:table-cell>
> <fo:block>
> no top/bottom ^^^why 1/2pt ?
> </fo:block>
> </fo:table-cell>
> </fo:table-row>
>
> </fo:table-body>
> </fo:table>
>
>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org