Table Header Height

How do I change the height of the header in a regular Table component (not Power Table)? I’ve used HTML to make a centered multi-line header, but it’s not readable in the header.

Add a height property to the headerStyle prop:

image

Should have specified, in vision

You’ll have to use scripting to reach in to the component and extract the actual table header component, then give it a minimum size large enough for your wrapped text.

Alternatively, I’ll just not show the headers and make my own.

Thanks

If anyone is still interested, I managed to change the header height by placing the following code in the PowerTable propertyChange event:

if event.propertyName=="componentRunning":
	
	dim=event.source.columnHeader.getPreferredSize()
	dim.height=90
	event.source.columnHeader.setPreferredSize(dim)
	event.source.columnHeader.updateUI()
2 Likes

I attempted to use this for the normal table component, but got no results.