The pink box is achored to the path so that it is fastened to the path at its center. This is default.
Click the "Try it" button to change the achored point to the right bottom corner of the pink box: