Set resize mode.