Thank you, that works. However, I wanted to specify the viewport in pixels directly, and I found an error in the manual.
The callsyntax of the setSize function is either setSize([width,height]), or setSize(width,height,flag), not setSize([width,height],flag).
Took me a while to figure that out, didn't expect the doc to be wrong. All works now.
Best,
Dee
|