Fixed a situation where searchbox would expand past the end of the map when size of text expands past that point before it is detected. Done by changing keyup to keydown for _handleAutoresize event.