fixed targetTextField spanning issue on window resize