// This fixed delay is regrettable but necessary as it can take some
// time for Ace's scrolling logic to actually execute (i.e. the next
// time the renderloop runs). If we don't wait, then misspelled words
// at the end of the document will result in misreported cursor bounds,
// meaning we'll be avoiding a completely incorrect region.
Scheduler.get().scheduleFixedDelay(new RepeatingCommand()
{
@Override
public boolean execute()
{
showDialog(docDisplay_.getCursorBounds());