I'm creating a table inside a vertically directed flow. (inside a scroll-pane, inside a tabbed_pane, inside a frame, inside a frame)
The table has 2 columns and is filled with labels to display data. This is how it should look like:
But if I change the style of the right labels to be horizontally stretchable, then the height of the frame suddenly explodes, which makes the gui unnecessarily big:
Code: Select all
local value_label =
data_list.add {
type = "label",
name = "value-" .. key,
caption = value_caption
}
value_label.style.horizontally_stretchable = true
value_label.style.single_line = false
Originally the frame wasn't inside a scroll-pane, which resulted in it expanding outside the enclosing frame and even outside my screen, right through the floor into my neighbor's appartment, who called the cops.
In case you need it: Github - The gui file
Otherwise I appended the current version of my unfinished mod and a save where you need to click the Testing House (the stick figure house) to open the gui.
PS: I'm sorry the log is so spammed. I didn't know InfinityMode does that.