Fix Zoom box resizing when it's hidden when the viewer loads (issue 5224)