You can use the position property of the rectangle to keep it in place as the y size changes. If you want to grow the rectangle up, the position expression would be (layer and path names may be different in your case):
yPos = content("Rectangle 1").content("Rectangle Path 1").size[1]/2;
value-[0, yPos]
Kalleheikki Kannisto
Senior Graphic Designer