System.GUI.Transform on Table will Resize Row Height and Font Size

I have setup a simple test case:

Power Table with auto-generated test data

Button 1 Action Performed:

table = event.source.parent.getComponent('Power Table')
system.gui.transform(table, newX=100, newY=100, newWidth=200, newHeight=200)

Button 2 Action Performed:

table = event.source.parent.getComponent('Power Table')
system.gui.transform(table, newX=100, newY=100, newWidth=500, newHeight=500)

When pressing the buttons in the Designer live mode, the table changes size and the cell formatting remains constant. The table simply displays as much data as possible within the bounds of the container without changing format.

When I do the same thing in a running client application, the cell formatting changes by scaling font size and row height up or down depending on the new size of the container.

Essentially, in the client application the transform attempts to keep the same number of rows and columns visible and scales the content to fit. Whereas in the Designer, the number of rows and columns visible changes and the formatting remains the same.

I need the client to work like the designer, so the font does not become minuscule or gigantic depending on table size.

bump - Wondering if anyone may have advice, issue is still occurring.

Turn off ‘Scale Font’ in the table’s layout properties:

1 Like

Ah the simple things…Thanks for your help. I was all over the table properties, but I forgot about this. I almost always use anchored layout for all my components.

1 Like