Stretching is done for top alignd cells. If you ALIGN_MIDDLE no
stretching will occur.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Idan Gazit
> Sent: Thursday, May 13, 2004 5:29 AM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Height of embedded PdfPTable? (Help!)
> 
> Hey everybody,
> 
> So, what I am attempting to do is pretty simple in theory: I have a 3 
> column PdfPTable, the third column of which contains smaller 
> PdfPtables.
> 
> A picture is worth a thousand words, so find one attached, or grab it 
> from this link in case the attachment doesn't make it to the list:
> 
> http://idan.fastmail.fm/pdfptable_grow.jpg
> 
> Basically what I want is for the embedded PdfPtable's height to stay 
> fixed and not expand to fill the height of the row it is embedded in. 
> Note how for row B, the long text in the second cell makes the row 
> taller, causing the embedded PdfPtable in the third cell to 
> grow to fill 
> the row. In cases where the embedded PdfPtable has two or 
> more rows, but 
> the text in cell 2 is still longer, then only the *last* row of the 
> *embedded* pdfptable is stretched vertically to fill the gap.
> 
> I've tried using setFixedHeight(). It actually ensures a 
> minimum size, 
> but does nothing about the stretched cells. The text inside 
> the cells of 
> the embedded PdfPtable is tiny and will never grow the cell (see 
> example), so I'm not worried about text forcing the embedded table to 
> grow, it seems like the embedded table is growing to satisfy the row 
> height of its "parent" pdfptable. How do I restrict/stop this?
> 
> I'm also open to suggestions of "there's an easier way to do 
> that" -- if 
> I've overlooked a better approach don't hesitate to point it out.
> 
> My deepest thanks in advance, I have been battling this for a 
> week now 
> and can't seem to find something on target in the docs or list.
> 
> Cheers,
> 
> Idan
> 
> apply your human intellect to the email below:
> idan AT ###NoSpam### fastmail DOT fm
> 
> 


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to