viewport resizing - strange effect