allow automatic resizing of the Viewer panel (height), and fixes browser zooming problems

Change-Id: If13696d765718ed87beb7dcd5db7dd717b0f2e97