Hi All,
   I've encountered a bit of a bizzare problem with a brochure design
project I'm working on... My table of contents is presented within a table
structure with four columns at the right hand side to contain ticks
indicating certain features of the products on offer (training courses in
this case). In order to title these very narrow columns, I have opted to
write their labels horizontally along rows and use cell colours to create
the effect of the label turning 90 degrees down to the column.

An example of this output is here:
http://www.nabble.com/file/p19182765/Table1.png 

I have first specified six <fo:table-column> elements and applied the four
different shades of blue as 'background-color- to the last four columns.
To achieve my sideways labels, the top one "Mandatory(H&S)" is a <table-row>
containing a <table-cell number-columns-spanned="6" text-align="right"> then
an <fo:block><fo:inline background-color="blue"
padding="2pt">TEXT</fo:inline></fo:block>
The next <table-row> has a cell which spans 5 columns followed by an empty
<table-cell> which adopts the colour of the end column.
The next <table-row> has a cell of 4 columns, followed by two empty
<table-cell> elements, and so on....

As you can see, on the first page of the Table, it all displays correctly.
However when the table contents overflow the page, the header is repeated on
the next page, but looks like this:

http://www.nabble.com/file/p19182765/Table2.png 

It seems like the Left and Right padding is getting lost. Although, in the
following example, if you imagine the "|" character being where the
background image stops, then:

Inline with padding="0":
  |Mandatory (H&S)*|     (This displays fine on all pages, but I want the
background colour to surround the text more)

Inline with padding="2pt":
  |  Mandatory (H&S)*  |    on Page 1 and  
  |Mandatory (H&S)* |       on Page 2 
Note the left padding is gone, but the right padding looks to still be 1pt,
but then a gap of 1pt (margin perhaps?? - It's explicitly set to 0px in my
source!)

The top and bottom padding appears to remain consistent. If I increase the
padding (e.g. to 5pt) it still seems to revert to 0pt on the left and 1pt on
the right for all pages after the first. N.B. I'm using a really basic A4
sized page master for this sequence.

I've tried to work around this issue by applying the background to either
<fo:block> or <fo:block-container> but I simply cannot get FOP to display a
block containing the text on the right-hand edge of the page:
Applying the background  colour  to the <fo:block> causes the whole row to
be coloured, and  it appears to ignore any attempts to force a width (I
guess this is expected behaviour?).
By using an <fo:block-container> I can reduce the block to the correct size,
but without absolute positioning (which takes it out of the flow of the
table) despite many, many different attempts it will not display on the
right hand edge of the page. If anyone can tell me how to achieve this
easily then I may not need to use the padding on the inline elements.

Can anyone help explain either Why I am loosing my padding and how to fix
it, or how I can get my text inside block elements which can be positioned
with a right-hand alignment?

Many Thanks in Advance
Jonathan Heard


-- 
View this message in context: 
http://www.nabble.com/left-and-right-padding-lost-on-fo%3Ainline-in-table-header-when-repeated-beyond-one-page-tp19182765p19182765.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to