Camera snapping fixed.

After trying to debug this for hours, it turned out I was using top/top
rather than top/height in the constructor.