Q.Container.fit() was computing cx and cy incorrectly. It was computing the leftmost and topmost coordinates rather than distance of leftmost and topmost from the center.
This commit fixes that.