fixed issue in which if non-nested viewer was resized to below minimum size, then resized up, viewer height/width would not get correct values