Make viewport resizing optional