Yeah that's how I have been doing it, but thought I might give the anchor feature a go (thought it might of saved me writing the code in the designer) and didn't know if it was able to do it or not, so I thought I would ask.
I will keep using the designer script with percentages for now.