|Topic was automatically imported from the old Question2Answer platform.
I have a
VBoxContainer to which I add
Labels in code. I then set the pivot offset of the labels to their centers:
for i in range(num_selections):
new_selection = Label.new()
new_selection.name = "Selection" + str(i)
new_selection.text = selection_texts[i]
new_selection.align = Label.ALIGN_CENTER
new_selection.rect_pivot_offset.x = new_selection.rect_size.x/2
new_selection.rect_pivot_offset.y = new_selection.rect_size.y/2
Later in code when I scale the
Labels the scale behaviour seems to be ignoring the pivot offset and stretching the
Label up and to the right.
Is this a consequence of the label being a child of a
VBoxContainer? Is there some way to force the label to scale in the way I want?