fixed issue with resizing media viewer on zoom