Do not flip the menu to top if there is not enough space

See https://bugzilla.wikimedia.org/show_bug.cgi?id=49679
Merge branch 'master' of github.com:wikimedia/jquery.ime

Conflicts:
	src/jquery.ime.selector.js