Correctly set the document size.

This fixes #26.
Update changelog.