Set the correct frame and bounds before adding constraints.

Fixes #202.