Fix #152 - calculateVisiblePages bug when viewer is display:none