Changing the alignment of UI elements with code?

Thanks, I’ll try that!