By itself, the Viewer does not change its size. It is up to the developer to decide what the size of the viewer should be.
viewer.setSize(1000,768);