How to change height of table cell

Questions and information about using Lua scripting with Storyboard

Moderator: jamiev

How to change height of table cell

Postby stubbornthings » Thu Apr 06, 2017 1:43 pm

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.

Code: Select all
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?

Posts: 15
Joined: Tue Aug 02, 2016 3:25 pm

Re: How to change height for table cell

Postby JohnW » Thu Apr 06, 2017 2:36 pm

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.
User avatar
Posts: 56
Joined: Wed May 08, 2013 4:52 pm

Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 1 guest