How to change height of table cell

I'm trying to change the height of a cell in a table but I can't seem to get it to work.

Here is what I've tried.

dataheight = {}

local tableheight = string.format("Settings.settingsTable.%d.%d", r, c)
dataheight["height"] = 8

gre.set_control_attrs(settingheight, dataheight)

I'm not getting any errors but I don't see that the cell has changed height.

Any ideas?

Thanks.

0

Comments

1 comment
  • Hi There!

    Table rows and columns are fixed to the heights and widths they were when you created the table cells and cannot change. Also, note that in the example you posted your set_control_attrs target is referencing a variable that is not there.

    If you are looking to have a single row expand in size I would suggest looking into making your own list out of groups or controls and using a scrolling layer.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post