Derrell, I have a cellrenderer.Image in one of my table columns and the image is also "mis-aligned" (sticking to the top of the cells which are higher than the image). Any suggestion on how to get those vertically centered in the middle of the cell?
Cheers, Fritz On Thu, 8 Jul 2010, Derrell Lipman wrote: > On Thu, Jul 8, 2010 at 05:36, Fritz Zaucker <[email protected]>wrote: > >> Hi, >> >> how can I make the content of table cells vertically centered?. >> >> The table playground example shows that the text more at towards the top of >> the cell. >> >> > This is a result of the qooxdoo "default" font having a line-height > attribute of 1.4. The "default" font is specified by the row renderer. If > you add the following line, you'll see that the text entries are then > centered. (Then again, you'll also see that it's using the browser's default > font instead of the qooxdoo "default" font, so simply adding this line is > almost certainly not all you want to do. You'll need to fix the "default" > font, or add a new one. Look at the call to _renderFont in the constructor > of qx.ui.table.rowrenderer.Default. > > table.getDataRowRenderer()._renderFont(null); > > Derrell > -- Oetiker+Partner AG tel: +41 62 775 9903 (direct) Fritz Zaucker +41 62 775 9900 (switch board) Aarweg 15 +41 79 675 0630 (mobile) CH-4600 Olten fax: +41 62 775 9905 Schweiz web: www.oetiker.ch ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
