PDA

View Full Version : Vertical align middle for text inside grid rows



silveralecs
9 Apr 2014, 12:55 AM
How can I vertical align middle text inside grid rows ?
I've tried with tdAttrs but it doesn't work.



layout: {
type: 'table',
tdAttrs: {
valign: 'middle'
}
}


I've also tried this:
Try setting valign=middle on the tdAttr variable in the column renderer or use line-height.

Still doesn't work.

Thank you very much

scottmartin
9 Apr 2014, 12:33 PM
You can use this:



.mycentertext.x-grid-cell {
vertical-align : middle;
}