Creating a Template with a Centered Element That Fills the Available Space
Let’s say you want to create a template containing a text field and a knob, where you want the text field to be resized horizontally when the size of the template is changed and where you want the knob to remain centered and unscaled.
Procedure
Result
This way, resizing the template by 20 pixels will move the left and right borders of the knob by 10 pixels each, keeping the size of the knob unchanged and its position centered.