The problem was that the camera was reset before the new viewport size was computed.
http://www.paraview.org/Bug/view.php?id=15827