Resolved Bug 974264 - Viewport width/height were reversed...

... and using CSS pixels causing an incorrect preview size selection.