@shinyformica, if I understand your requirement right, it is as simple as:

button.frame = v.bounds button.flex = 'WH'