Fix viewportPosition attributes access (closes #758)
Merge pull request #760 from fredj/issue-758

Fix viewportPosition attributes access (closes #758)