Optimized positioning on textarea resize event