Re: vertically centering contents of table-cell

2001-07-20 Thread Karen Lease

Hi Petr,

It should work now (CVS from tonight), except when you also have a
height property on the same cell. It's OK if you have a height property
on the row containing the cells with display-align.

Regards,
Karen

Petr Andrs wrote:
> 
> Hi all,
> 
> can anybody suggest me how to vertically center content of table-cell?
> display-align which works in other renderers doesn't work in FOP.
> 
> pa
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




RE: vertically centering contents of table-cell

2001-07-16 Thread Struan Judd

Eric,

I had this requirement (well more correctly, I needed display-align='after')
and the first thing I tried was to comment out the first line of real code
in setRowHeight(int), ie. cellArea.increaseHeight(h + borderHeight/2 -
cellArea.getHeight());

Now this makes display-align work (sorta) but mucks up the border and
background for any table cells where display-align is not the default
(before?)

For the moment this is acceptable to me but probably not to the project as a
whole.

TTFN

Struan Judd <*> "And so it begins ..."  ICQ: 4498196
http://neongraal.sf.org.nz
mailto:[EMAIL PROTECTED] Voicemail and Fax: +1 (201) 305-1011 x1006


> -Original Message-
> From: Eric Galluzzo [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 17 July 2001 01:29
> To: [EMAIL PROTECTED]
> Subject: RE: vertically centering contents of table-cell
>
>
> > Good question. Does anyone knows how to vertically center text in a
> > table-cell?
>
> I'm afraid that I don't. :)
>
> I tried display-align="center" and vertical-align="middle", both to no
> avail.  From the code (specifically,
> org.apache.fop.fo.flow.TableCell.setup() and setRowHeight(int) ) it looks
> like display-align should be supported, but it seems that
> setRowHeight() is
> not being called.  At least, I set a breakpoint in that method
> and it never
> halted execution.  Being a FOP newbie, I'm not sure how to fix
> this problem.
>
> Any ideas?
>
> - Eric
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Re: vertically centering contents of table-cell

2001-07-16 Thread Karen Lease

Hi all,

Since I'm doing table work now, I'll try to have a look at this and see
if it can fixed.

Regards,
Karen Lease

Eric Galluzzo wrote:
> 
> > Good question. Does anyone knows how to vertically center text in a
> > table-cell?
> 
> I'm afraid that I don't. :)
> 
> I tried display-align="center" and vertical-align="middle", both to no
> avail.  From the code (specifically,
> org.apache.fop.fo.flow.TableCell.setup() and setRowHeight(int) ) it looks
> like display-align should be supported, but it seems that setRowHeight() is
> not being called.  At least, I set a breakpoint in that method and it never
> halted execution.  Being a FOP newbie, I'm not sure how to fix this problem.
> 
> Any ideas?
> 
> - Eric
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




RE: vertically centering contents of table-cell

2001-07-16 Thread Eric Galluzzo

> Good question. Does anyone knows how to vertically center text in a
> table-cell?

I'm afraid that I don't. :)

I tried display-align="center" and vertical-align="middle", both to no
avail.  From the code (specifically,
org.apache.fop.fo.flow.TableCell.setup() and setRowHeight(int) ) it looks
like display-align should be supported, but it seems that setRowHeight() is
not being called.  At least, I set a breakpoint in that method and it never
halted execution.  Being a FOP newbie, I'm not sure how to fix this problem.

Any ideas?

- Eric


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




Re: vertically centering contents of table-cell

2001-07-15 Thread Chris Burkey

Good question. Does anyone knows how to vertically center text in a 
table-cell?

Is there a bug report needed?

At 07:46 PM 7/14/2001 +0200, you wrote:
>Hi all,
>
>can anybody suggest me how to vertically center content of table-cell?
>display-align which works in other renderers doesn't work in FOP.
>
>pa
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]


Christopher Burkey  [EMAIL PROTECTED] 
President   513-542-3401
eInnovation Inc.http://einnovation.com




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