Issue 6197: Auto-completion popup gets wrongly positioned on Linux

https://code.google.com/p/fbug/issues/detail?id=6197
Clean up console/autoCompleter slightly