Ivo, Well, this is proving a bit of work. The problem is that nested layout component define the height of their parent. So, as a cell builds its nested output, it ends up defining the height of the row. To allow for vertical alignment of 'bottom' in a cell, all the cells would first have to report their height and then start building output based on the updated height. This is very similar to the two pass process used for page layout: first check if the layout component fits, and then build the output. I use tables for all kinds of layout trickery in Seaside; the same flexibility should be available in Report4PDF ... it will just take a bit longer (probably a few weeks, given my work schedule lately). Bob ________________________________ From: Ivo Roefs <ivo.roefs@xxxxxxxxx> To: pdf4st@xxxxxxxxxxxxx Sent: Wednesday, October 17, 2012 3:15:10 AM Subject: [pdf4st] Re: cell heights and vertical alignment of text Hi Bob, I think it's OK to set the height calculation to the row height. In the very rare case where you would want different cell heights in one row, i imagine one could work with nested tables, or row spans. kind regards, Ivo Roefs Op 16/10/2012 23:43, bobn@xxxxxxxxxx schreef: Ivo, >Would it be helpful to change the table cell height calculation and change it >to be the row height? >Are there cases where that would not be a good choice? > > >HTML tables set cells to the calculated row height, perhaps that's what the >PDF table should do. >Row span will have to be looked at carefully, but it should not be too hard. > > >Bob > > > > > >________________________________ > From: Ivo Roefs <ivo.roefs@xxxxxxxxx> >To: "pdf4st@xxxxxxxxxxxxx" <pdf4st@xxxxxxxxxxxxx> >Sent: Tuesday, October 16, 2012 6:38:34 AM >Subject: [pdf4st] cell heights and vertical alignment of text > >Hi, > >I've got a question about cell heights and vertical alignment of text. >In following example there's a table with 1 row, 2 cells. >The font size of the text in the first cell is smaller than the second cell. >Both texts are aligned to the bottom of the cell. > >I get unexpected results: > The 2 cells have a different height. I'd expect that all cells of a row would have the same height? > Because of this the texts are not bottom aligned. > >Maybe I'm doing this the wrong way? Can anybody help me out on this? > >kind regards, >Ivo Roefs > >exampleTableCellVerticalAlignmentOfText > " self new exampleTableCellVerticalAlignmentOfText saveAndShowAs: 'exampleTableCellVerticalAlignmentOfText.pdf' " > > | report | > report := R4PReport new. > report portrait. > report page: > [:page | > page table: > [:table | > table row: > [:row | > row cell: > [:cell | > cell > border: 0.1; > bottom. > (cell text) > fontSize: 6; > bottom; > string: 'The quick brown fox']. > row cell: > [:cell | > cell border: 0.1. > (cell text) > bold; > bottom; > string: 'Jumps over the lazy dog']]]]. > ^report >--- PDF4Smalltalk discussion //www.freelists.org/list/pdf4st > > > > --- PDF4Smalltalk discussion //www.freelists.org/list/pdf4st