Update cursor on resize