setting only with or height of viewportSize is now taking account

Closes #133