Update position on document resize.