TACTIC Open Source
Table Rows and Cells Align - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: Table Rows and Cells Align (/showthread.php?tid=4)



Table Rows and Cells Align - listy - 10-03-2019

Hi.
Does anyone know how to do centered v-align and h-align in table cells?

I'd like the text in the cells to be displayed in the middle.

I know it possible in expressions cells, but this does not work in raw or string cells

Thanks


RE: Table Rows and Cells Align - remkonoteboom - 10-03-2019

We've never gotten around to making this more official. There is a hack that will get this much of the way, but I am not sure if it will work with all of the table elements.

Passing this "extra_data" into the TableLayoutWdg

extra_data={
"min_height": "16px",
"single_line": "true",
},

will do mostly what you want. The min_height sets the mininum height of the cell and single line removes wordwrap. Without single line, centering can look weird if you have very large amount of data in the cells.