Update maxLengthIndicator position on resize event

Works both on mobiles and desktop. I believe jQuery .resize should be used instead of window.onresize as jQuery takes care of cross-browser compatibility.