Power Table header height

Does anybody know how to control the header height for a power table?

I know I can add html line breaks to the column name but there has to be another way given how configurable the component is.

In version 7.7.5 the header height was already good with padding at the top and bottom but we have switched over to 7.8.4 and headers are now sandwiched between the top and bottom borders of the header.



Nick Mudge comes to the rescue.

Put this code in the initialize extension function of the Power Table:

from java.awt import Dimension table = self.getTable() header = table.getTableHeader() dim = header.getPreferredSize() header.setPreferredSize(Dimension(int(dim.getWidth()), 300)) header.revalidate()That code sets the height of the header to 300. You can change that value. You won’t see the change until after you save the window, close it and open it again. Because the initialize extension function executes when a window is opened.

Best,

1 Like

:mrgreen:

Nalied it! Thanks Nick.

Not my best work, but there it is…

1 Like

Haha! That is too funny!